code: def test_model_serialization():
      m = SomeModel()
      # To be used on Spark, models need to be pickled, so we have a test for that. It's
      # not an insecure use of pickle, which is why we use the `nosec` comment.
      re_m = pickle.loads(pickle.dumps(m))  # nosec
      assert re_m({"x": 1}).x == 1
  
file_path: modelkit/tests/test_model_serialization.py
imports: import pickle
  import pydantic
  from modelkit.core.model import Model
label_desc: Use image node_id 1 for calling a global function with example usage: test_model_serialization() without return types