code: def testStringTypeNameNotAllowed(self):
      with self.assertRaisesRegex(
          ValueError,
          'The "mlmd_artifact_type" argument must be an instance of the proto '
          "message",
      ):
          artifact.Artifact("StringTypeName")
  
imports: import json
  import textwrap
  from unittest import mock
  from absl import logging
  import tensorflow
  from tfx.types import artifact
  from tfx.types import system_artifacts
  from tfx.types import value_artifact
  from tfx.utils import json_utils
  from google.protobuf import struct_pb2
  from google.protobuf import json_format
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 7 for calling the ArtifactTest obj's underlying member method code with example usage: obj.testStringTypeNameNotAllowed() without return types