def _get_backing_memmap(a):
 b = getattr(a, 'base', None)
 if (b is None):
  return None
 elif isinstance(b, mmap):
  return a
 else:
  return _get_backing_memmap(b)

def _get_backing_memmap ( a ) : b = getattr ( a , 'base' , None ) if ( b is None ) : return None elif isinstance ( b , mmap ) : return a else : return _get_backing_memmap ( b )
recursively look up the original np .