code: def pickle_size_of(obj: Any) -> int:
      """
      Measure the size of a pickle file containing obj.
  
      This function can be used to assess the size of obj if it were written
      to disk. No actual disk-writing is included: the process is simulated
      using a BytesIO object. This is useful for assessing the size of a
      compressed image including associated metadata.
  
      Args:
          obj: The object to be written to a file.
  
      Returns:
          The size of the object if it were written to a pickle file.
      """
      buffer = BytesIO()
      pickle.dump(obj, buffer)
  
      num_bytes = buffer.getbuffer().nbytes
  
      buffer.close()
  
      return num_bytes
  
label_desc: Use image node_id 1 for calling a global function with example usage: pickle_size_of(obj) and returns: num_bytes