code: def _strided_from_memmap(
      filename,
      dtype,
      mode,
      offset,
      order,
      shape,
      strides,
      total_buffer_len,
  ):
      """Reconstruct an array view on a memory mapped file."""
      if mode == "w+":
          # Do not zero the original data when unpickling
          mode = "r+"
  
      if strides is None:
          # Simple, contiguous memmap
          return np.memmap(
              filename,
              dtype=dtype,
              shape=shape,
              mode=mode,
              offset=offset,
              order=order,
          )
      else:
          # For non-contiguous data, memmap the total enclosing buffer and then
          # extract the non-contiguous view with the stride-tricks API
          base = np.memmap(
              filename,
              dtype=dtype,
              shape=total_buffer_len,
              mode=mode,
              offset=offset,
              order=order,
          )
          return as_strided(base, shape=shape, strides=strides)
  
imports: from mmap import mmap
  import errno
  import os
  import stat
  import sys
  import threading
  import atexit
  import tempfile
  import shutil
  import warnings
  from time import sleep
  from pickle import whichmodule
  from pickle import Pickler
  from pickle import HIGHEST_PROTOCOL
  from io import BytesIO
  from ._multiprocessing_helpers import mp, assert_spawning
  from multiprocessing.pool import Pool
  from .numpy_pickle import load
  from .numpy_pickle import dump
  from .hashing import hash
label_desc: Use image node_id 3 for calling a global function with example usage: _strided_from_memmap(filename, dtype, mode, offset, order, shape, strides, total_buffer_len) and returns: np, as_strided