docstr: Test split retrieval utility on a multiple list of split Artifacts.
docstr_tok: ["Test","split","retrieval","utility","on","a","multiple","list","of","split","Artifacts","."]
code: def testGetFromSplitsMultipleArtifacts(self):
      """Test split retrieval utility on a multiple list of split Artifacts."""
      artifacts = [
          standard_artifacts.Examples(),
          standard_artifacts.Examples(),
      ]
      artifacts[0].uri = "/tmp1"
      artifacts[
          0
      ].split_names = standard_artifact_utils.encode_split_names(
          ["train", "eval"]
      )
      artifacts[1].uri = "/tmp2"
      artifacts[
          1
      ].split_names = standard_artifact_utils.encode_split_names(
          ["train", "eval"]
      )
      # When creating new splits, use 'Split-<split_name>' format.
      self.assertEqual(
          ["/tmp1/Split-train", "/tmp2/Split-train"],
          standard_artifact_utils.get_split_uris(artifacts, "train"),
      )
      self.assertEqual(
          ["/tmp1/Split-eval", "/tmp2/Split-eval"],
          standard_artifact_utils.get_split_uris(artifacts, "eval"),
      )
      # When reading artifacts without version.
      artifacts[
          0
      ].mlmd_artifact.state = metadata_store_pb2.Artifact.LIVE
      artifacts[
          1
      ].mlmd_artifact.state = metadata_store_pb2.Artifact.LIVE
      self.assertEqual(
          ["/tmp1/train", "/tmp2/train"],
          standard_artifact_utils.get_split_uris(artifacts, "train"),
      )
      self.assertEqual(
          ["/tmp1/eval", "/tmp2/eval"],
          standard_artifact_utils.get_split_uris(artifacts, "eval"),
      )
      # When reading artifacts with old version.
      artifacts[0].set_string_custom_property(
          standard_artifact_utils.ARTIFACT_TFX_VERSION_CUSTOM_PROPERTY_KEY,
          "0.1",
      )
      artifacts[1].set_string_custom_property(
          standard_artifact_utils.ARTIFACT_TFX_VERSION_CUSTOM_PROPERTY_KEY,
          "0.1",
      )
      self.assertEqual(
          ["/tmp1/train", "/tmp2/train"],
          standard_artifact_utils.get_split_uris(artifacts, "train"),
      )
      self.assertEqual(
          ["/tmp1/eval", "/tmp2/eval"],
          standard_artifact_utils.get_split_uris(artifacts, "eval"),
      )
      # When reading artifacts with new version.
      artifacts[0].set_string_custom_property(
          standard_artifact_utils.ARTIFACT_TFX_VERSION_CUSTOM_PROPERTY_KEY,
          standard_artifact_utils._ARTIFACT_VERSION_FOR_SPLIT_UPDATE,
      )  # pylint: disable=protected-access
      artifacts[1].set_string_custom_property(
          standard_artifact_utils.ARTIFACT_TFX_VERSION_CUSTOM_PROPERTY_KEY,
          standard_artifact_utils._ARTIFACT_VERSION_FOR_SPLIT_UPDATE,
      )  # pylint: disable=protected-access
      self.assertEqual(
          ["/tmp1/Split-train", "/tmp2/Split-train"],
          standard_artifact_utils.get_split_uris(artifacts, "train"),
      )
      self.assertEqual(
          ["/tmp1/Split-eval", "/tmp2/Split-eval"],
          standard_artifact_utils.get_split_uris(artifacts, "eval"),
      )
  
file_path: tfx/tfx/types/standard_artifact_utils_test.py
imports: import tensorflow
  from tfx.types import artifact
  from tfx.types import standard_artifact_utils
  from tfx.types import standard_artifacts
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 3 for calling the ArtifactUtilsTest obj's underlying member method code with example usage: obj.testGetFromSplitsMultipleArtifacts() without return types