code: def load(path, dtype, shape, mmap_mode=None):
      """
      Load an array from an .npy file.
  
      Parameters
      ----------
      path
          A Generic symbolic variable, that will contain a string
      dtype : data-type
          The data type of the array to be read.
      shape
          The static shape information of the loaded array.
      mmap_mode
          How the file will be loaded. None means that the
          data will be copied into an array in memory, 'c' means that the file
          will be mapped into virtual memory, so only the parts that are
          needed will be actually read from disk and put into memory.
          Other modes supported by numpy.load ('r', 'r+', 'w+') cannot
          be supported by PyTensor.
  
      Examples
      --------
      >>> from pytensor import *
      >>> path = Variable(Generic(), None)
      >>> x = tensor.load(path, 'int64', (None,))
      >>> y = x*2
      >>> fn = function([path], y)
      >>> fn("stored-array.npy")  # doctest: +SKIP
      array([0, 2, 4, 6, 8], dtype=int64)
  
      """
  
      return LoadFromDisk(dtype, shape, mmap_mode)(path)
  
file_path: pytensor/pytensor/tensor/io.py
imports: import numpy
  from pytensor.graph.basic import Apply, Constant
  from pytensor.graph.op import Op
  from pytensor.link.c.type import Generic
  from pytensor.tensor.type import tensor
label_desc: Use image node_id 1 for calling a global function with example usage: load(path, dtype, shape, mmap_mode) and returns: LoadFromDisk