code: def create_artifact(
      store: metadata_store.MetadataStore,
      artifact_type_id: int,
      name: str,
  ) -> metadata_store_pb2.Artifact:
      """Put an Artifact in the MLMD database."""
      artifact = metadata_store_pb2.Artifact(
          name=name, type_id=artifact_type_id, uri=f"https://{name}"
      )
      [artifact.id] = store.put_artifacts([artifact])
  
      return artifact
  
imports: from typing import Dict, List
  from absl.testing import absltest
  from ml_metadata import metadata_store
  from ml_metadata.proto import metadata_store_pb2
  from ml_metadata.tools.mlmd_resolver import metadata_resolver
  from ml_metadata.tools.mlmd_resolver import metadata_resolver_utils
label_desc: Use image node_id 2 for calling a global function with example usage: create_artifact(store, artifact_type_id, name) and returns: artifact