class_docstr: Convenient wrapper for tfx test cases.
docstr: Asserts that two Artifacts are equal.
code: def assertArtifactEqual(
      self,
      actual: types.Artifact,
      expected: types.Artifact,
  ):
      """Asserts that two Artifacts are equal."""
      self.assertProtoEquals(
          actual.artifact_type,
          expected.artifact_type,
          (
              f"Actual Artifact type {actual.mlmd_artifact} not equal to"
              f" {expected.mlmd_artifact}"
          ),
      )
      self.assertProtoEquals(
          expected.mlmd_artifact,
          actual.mlmd_artifact,
          (
              f"Actual Artifact {actual.mlmd_artifact} not equal to"
              f" {expected.mlmd_artifact}"
          ),
      )
  
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 4 for calling the TfxTest obj's underlying member method code with example usage: obj.assertArtifactEqual(actual, expected) without return types