in gym3/libenv.py [0:0]
def _maybe_copy_dict(self, obj: Dict[str, Any]) -> Dict[str, Any]:
"""
Copy a list of dicts of numpy arrays if reuse_arrays is False,
otherwise just return the object
"""
if self._reuse_arrays:
return obj
else:
result = {}
for name, arr in obj.items():
result[name] = arr.copy()
return result