code: def test_pickle_size(arr_size, tmp_path: Path):
      x = np.reshape(np.arange(np.prod(arr_size)), arr_size)
  
      obj = {"thearr": x}
  
      mem_size = pickle_size_of(obj)
  
      tmp_file = f"pickle_size_of_{np.prod(arr_size)}.pkl"
      with open(tmp_path / tmp_file, "wb") as f:
          pickle.dump(obj, f)
  
      file_size = os.stat(tmp_path / tmp_file).st_size
  
      assert mem_size == file_size
  
imports: import os
  import pickle
  from pathlib import Path
  import numpy
  import pytest
  from neuralcompression.metrics import pickle_size_of
label_desc: Use image node_id 1 for calling a global function with example usage: test_pickle_size(arr_size, tmp_path) without return types