code: def test_basic(self):
      path = Variable(Generic(), None)
      # Not specifying mmap_mode defaults to None, and the data is
      # copied into main memory
      x = load(path, "int32", (None,))
      y = x * 2
      fn = function([path], y)
      assert (fn(self.filename) == (self.data * 2)).all()
  
file_path: pytensor/tests/tensor/test_io.py
imports: import os
  import numpy
  import pytest
  import pytensor
  from pytensor import function
  from pytensor.graph.basic import Variable
  from pytensor.link.c.type import Generic
  from pytensor.tensor.io import load
label_desc: Use image node_id 2 for calling the TestLoadTensor obj's underlying member method code with example usage: obj.test_basic() without return types