code: def test_write_ones(self):
      pathlib.Path(temp("dt2")).unlink(missing_ok=True)
  
      out = Tensor.ones(10, 10, device="CPU").contiguous()
      outdisk = out.to(f"disk:{temp('dt2')}")
      print(outdisk)
      outdisk.realize()
      del out, outdisk
  
      import struct
  
      # test file
      with open(temp("dt2"), "rb") as f:
          assert (
              f.read()
              == struct.pack("<f", 1.0) * 100
              == b"\x00\x00\x80\x3F" * 100
          )
  
      # test load alt
      reloaded = Tensor.empty(10, 10, device=f"disk:{temp('dt2')}")
      np.testing.assert_almost_equal(
          reloaded.numpy(), np.ones((10, 10))
      )
  
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 the TestDiskTensor obj's underlying member method code with example usage: obj.test_write_ones() without return types