in gym3/libenv.py [0:0]
def _maybe_copy_ndarray(self, obj: np.ndarray) -> np.ndarray:
"""
Copy a single numpy array if reuse_arrays is False,
otherwise just return the object
"""
if self._reuse_arrays:
return obj
else:
return obj.copy()