code: def test_deserialization_metadata(self):
      serialized = (
          b'f\x00\x00\x00\x00\x00\x00\x00{"__metadata__":{"framework":"pt"},"test1":{"dtype":"I32","shape":[2,2],"data_offsets":[0,16]}}'
          b"       \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
      )
  
      with tempfile.NamedTemporaryFile() as f:
          f.write(serialized)
          f.seek(0)
  
          with safe_open(f.name, framework="np") as g:
              self.assertEqual(g.metadata(), {"framework": "pt"})
  
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 3 for calling the TestCase obj's underlying member method code with example usage: obj.test_deserialization_metadata() without return types