code: def test_roundtrip_with_dict(cls_name):
      cls = getattr(m, cls_name)
      p = cls("test_value")
      p.extra = 15
      p.dynamic = "Attribute"
  
      data = pickle.dumps(p, pickle.HIGHEST_PROTOCOL)
      p2 = pickle.loads(data)
      assert p2.value == p.value
      assert p2.extra == p.extra
      assert p2.dynamic == p.dynamic
  
file_path: coremltools/deps/pybind11/tests/test_pickling.py
imports: import pickle
  import re
  import pytest
  import env
  from pybind11_tests import pickling
label_desc: Use image node_id 3 for calling a global function with example usage: test_roundtrip_with_dict(cls_name) without return types