docstr: Checks that a MLMD artifacts and resolved artifact are equal.
docstr_tok: ["Checks","that","a","MLMD","artifacts","and","resolved","artifact","are","equal","."]
code: def assertResolvedAndMLMDArtifactEqual(
      self,
      resolved_artifact: metadata_store_pb2.Artifact,
      mlmd_artifact: metadata_store_pb2.Artifact,
      check_span_and_version: bool = False,
  ):
      """Checks that a MLMD artifacts and resolved artifact are equal."""
      self.assertEqual(mlmd_artifact.id, resolved_artifact.id)
      self.assertEqual(mlmd_artifact.type_id, resolved_artifact.type_id)
      self.assertEqual(mlmd_artifact.uri, resolved_artifact.uri)
      self.assertEqual(mlmd_artifact.state, resolved_artifact.state)
  
      if check_span_and_version:
          self.assertEqual(
              mlmd_artifact.properties["span"],
              resolved_artifact.properties["span"],
          )
          self.assertEqual(
              mlmd_artifact.properties["version"],
              resolved_artifact.properties["version"],
          )
  
imports: from typing import Sequence
  import tensorflow
  from tfx import types
  from tfx.dsl.control_flow import for_each
  from tfx.dsl.input_resolution import canned_resolver_functions
  from tfx.dsl.input_resolution import resolver_op
  from tfx.dsl.input_resolution.ops import test_utils
  from tfx.orchestration import pipeline
  from tfx.orchestration.portable import inputs_utils
  from tfx.orchestration.portable.input_resolution import exceptions
  from tfx.types import channel_utils
  from tfx.types import resolved_channel
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling the CannedResolverFunctionsTest obj's underlying member method code with example usage: obj.assertResolvedAndMLMDArtifactEqual(resolved_artifact, mlmd_artifact, check_span_and_version) without return types