code: def test_getitem(self):
      fp = memmap(self.tmpfp, dtype=self.dtype, shape=self.shape)
      fp[:] = self.data
  
      assert_(fp[1:, :-1].__class__ is memmap)
      # Fancy indexing returns a copy that is not memmapped
      assert_(fp[[0, 1]].__class__ is ndarray)
  
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 17 for calling the TestMemmap obj's underlying member method code with example usage: obj.test_getitem() without return types