code: def test_get_correctly_dropped(self):
      tensors = {
          "a": torch.zeros((2, 2)),
          "b": torch.zeros((2, 3), dtype=torch.uint8),
      }
      save_file_pt(tensors, "./out.safetensors")
      with safe_open("./out.safetensors", framework="pt") as f:
          pass
  
      with self.assertRaises(SafetensorError):
          print(f.keys())
  
      with open("./out.safetensors", "w") as g:
          g.write("something")
  
imports: import os
  import tempfile
  import unittest
  from pathlib import Path
  import numpy
  import torch
  from safetensors import SafetensorError, safe_open, serialize
  from safetensors.numpy import load, load_file, save, save_file
  from safetensors.torch import _find_shared_tensors
  from safetensors.torch import load_file
  from safetensors.torch import save_file
  from safetensors.torch import storage_ptr, storage_size
label_desc: Use image node_id 1 for calling the WindowsTestCase obj's underlying member method code with example usage: obj.test_get_correctly_dropped() without return types