code: def test_serialization(  # noqa: D
      consistent_id_object_repository: ConsistentIdObjectRepository,
      serializer: DataclassSerializer,
      deserializer: DataClassDeserializer,
  ) -> None:
      for (
          _,
          data_set,
      ) in (
          consistent_id_object_repository.simple_model_data_sets.items()
      ):
          serialized_obj = serializer.pydantic_serialize(
              data_set.instance_set
          )
          deserialized_obj = deserializer.pydantic_deserialize(
              dataclass_type=InstanceSet, serialized_obj=serialized_obj
          )
          assert data_set.instance_set == deserialized_obj
  
file_path: metricflow/metricflow/test/test_instance_serialization.py
imports: from __future__ import annotations
  import logging
  import pytest
  from dbt_semantic_interfaces.dataclass_serialization import DataClassDeserializer, DataclassSerializer
  from metricflow.instances import InstanceSet
  from metricflow.test.fixtures.model_fixtures import ConsistentIdObjectRepository
label_desc: Use image node_id 3 for calling a global function with example usage: test_serialization(consistent_id_object_repository, serializer, deserializer) without return types