code: def helper_test_disk_tensor(fn, data, np_fxn, tinygrad_fxn=None):
      if tinygrad_fxn is None:
          tinygrad_fxn = np_fxn
      pathlib.Path(temp(fn)).unlink(missing_ok=True)
      tinygrad_tensor = Tensor(data, device="CPU").to(
          f"disk:{temp(fn)}"
      )
      numpy_arr = np.array(data)
      tinygrad_fxn(tinygrad_tensor)
      np_fxn(numpy_arr)
      np.testing.assert_allclose(tinygrad_tensor.numpy(), numpy_arr)
  
imports: import pathlib, unittest
  import numpy
  from tinygrad import Tensor, Device, dtypes
  from tinygrad.nn.state import safe_load, safe_save, get_state_dict, torch_load
  from tinygrad.helpers import Timing, CI, fetch, temp
label_desc: Use image node_id 2 for calling a global function with example usage: helper_test_disk_tensor(fn, data, np_fxn, tinygrad_fxn) without return types