code: def _convert_to_artifact_proto(
      self, a: _TArtifact
  ) -> metadata_store_pb2.Artifact:
      return (
          a
          if isinstance(a, metadata_store_pb2.Artifact)
          else a.mlmd_artifact
      )
  
imports: from typing import Dict, List, Union
  import tensorflow
  from tfx.orchestration.portable import data_types
  from tfx.orchestration.python_execution_binary import python_execution_binary_utils
  from tfx.proto.orchestration import executable_spec_pb2
  from tfx.proto.orchestration import execution_result_pb2
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import artifact
  from tfx.types import channel
  from google.protobuf import text_format
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 1 for calling the PythonExecutorBinaryUtilsTest obj's underlying member method code with example usage: obj._convert_to_artifact_proto(a) and returns: unknown