code: def test_roundtrip(self):
      # Write data to file
      fp = memmap(
          self.tmpfp, dtype=self.dtype, mode="w+", shape=self.shape
      )
      fp[:] = self.data[:]
      del fp  # Test __del__ machinery, which handles cleanup
  
      # Read data back from file
      newfp = memmap(
          self.tmpfp, dtype=self.dtype, mode="r", shape=self.shape
      )
      assert_(allclose(self.data, newfp))
      assert_array_equal(self.data, newfp)
      assert_equal(newfp.flags.writeable, False)
  
imports: import sys
  import os
  import mmap
  import pytest
  from pathlib import Path
  from tempfile import NamedTemporaryFile, TemporaryFile
  from numpy import memmap, sum, average, prod, ndarray, isscalar, add, subtract, multiply
  from numpy import arange, allclose, asarray
  from numpy.testing import assert_, assert_equal, assert_array_equal, suppress_warnings, IS_PYPY, break_cycles
label_desc: Use image node_id 3 for calling the TestMemmap obj's underlying member method code with example usage: obj.test_roundtrip() without return types