class_docstr: Convenient wrapper for tfx test cases.
docstr: Asserts that two Artifact maps are equal.
code: def assertArtifactMapsEqual(
      self,
      expected_artifact_map: Mapping[str, Sequence[types.Artifact]],
      actual_artifact_map: Mapping[str, Sequence[types.Artifact]],
  ) -> None:
      """Asserts that two Artifact maps are equal."""
      self.assertEqual(
          actual_artifact_map.keys(),
          expected_artifact_map.keys(),
          "The artifact maps contain a different number of keys.",
      )
      for key, expected_artifact_list in expected_artifact_map.items():
          actual_artifact_list = actual_artifact_map[key]
          self.assertEqual(
              len(expected_artifact_list),
              len(actual_artifact_list),
              f"Artifact lists for key {key} have differing sizes.",
          )
          for expected, actual in zip(
              expected_artifact_list, actual_artifact_list
          ):
              self.assertProtoEquals(
                  expected.mlmd_artifact,
                  actual.mlmd_artifact,
                  f"Artifacts not equal for key {key}",
              )
              self.assertProtoEquals(
                  expected.artifact_type,
                  actual.artifact_type,
                  f"Artifact types not equal for key {key}",
              )
  
imports: from __future__ import annotations
  import contextlib
  import copy
  import os
  from typing import Dict, Iterable, Optional, Union, Mapping, Sequence, cast
  import unittest
  import tensorflow
  from tfx import types
  from tfx.dsl.io import fileio
  from tfx.orchestration import data_types_utils
  from tfx.orchestration import metadata
  from tfx.orchestration import mlmd_connection_manager
  from tfx.orchestration.portable.mlmd import event_lib
  from tfx.utils import io_utils
  from google.protobuf import message
  from google.protobuf import text_format
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 6 for calling the TfxTest obj's underlying member method code with example usage: obj.assertArtifactMapsEqual(expected_artifact_map, actual_artifact_map) without return types