docstr: Test that artifacts (in various input formats) are verified to exist.
docstr_tok: ["Test","that","artifacts","(","in","various","input","formats",")","are","verified","to","exist","."]
code: def testVerifyArtifacts(self, mock_fileio):
      """Test that artifacts (in various input formats) are verified to exist."""
      artifact_instance = standard_artifacts.Examples()
      uri = "/tmp/artifact"
      artifact_instance.uri = uri
      mock_fileio.exists.side_effect = lambda path: path == uri
      inputs = [
          (artifact_instance, "artifact instance"),
          ([artifact_instance, artifact_instance], "artifacts list"),
          (
              {
                  "key1": [artifact_instance, artifact_instance],
                  "key2": [
                      artifact_instance,
                      artifact_instance,
                      artifact_instance,
                  ],
              },
              "artifacts dict",
          ),
      ]
      for artifacts, artifacts_format in inputs:
          with self.subTest(artifacts_format):
              artifact_utils.verify_artifacts(artifacts)
  
imports: import copy
  from unittest import mock
  from absl import logging
  import tensorflow
  from tfx.types import artifact
  from tfx.types import artifact_utils
  from tfx.types import standard_artifacts
  from tfx.types import system_artifacts
  from tfx.types import value_artifact
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 9 for calling the ArtifactUtilsTest obj's underlying member method code with example usage: obj.testVerifyArtifacts(mock_fileio) without return types