def generate_output_dict(metadata_handler: metadata.Metadata, uri: str, properties: Dict[(str, Any)], custom_properties: Dict[(str, Any)], reimport: bool, output_artifact_class: Type[types.Artifact], mlmd_artifact_type: Optional[metadata_store_pb2.ArtifactType]=None) -> Dict[(str, List[types.Artifact])]:
    "Generates importer's output dict.\n\n  If there is already an artifact in MLMD with the same URI and properties /\n  custom properties, that artifact will be reused unless the `reimport`\n  argument is set to True.\n\n  Args:\n    metadata_handler: The handler of MLMD.\n    uri: The uri of the artifact.\n    properties: The properties of the artifact, given as a dictionary from\n      string keys to integer / string values. Must conform to the declared\n      properties of the destination channel's output type.\n    custom_properties: The custom properties of the artifact, given as a\n      dictionary from string keys to integer / string values.\n    reimport: If set to True, will register a new artifact even if it already\n      exists in the database.\n    output_artifact_class: The class of the output artifact.\n    mlmd_artifact_type: The MLMD artifact type of the Artifact to be created.\n\n  Returns:\n    a dictionary with the only key `result` whose value is the Artifact.\n  "
    return {IMPORT_RESULT_KEY: [_prepare_artifact(metadata_handler, uri=uri, properties=properties, custom_properties=custom_properties, output_artifact_class=output_artifact_class, mlmd_artifact_type=mlmd_artifact_type, reimport=reimport)]}
Generates importer's output dict.

If there is already an artifact in MLMD with the same URI and properties /
custom properties, that artifact will be reused unless the `reimport`
argument is set to True.

Args:
  metadata_handler: The handler of MLMD.
  uri: The uri of the artifact.
  properties: The properties of the artifact, given as a dictionary from
    string keys to integer / string values. Must conform to the declared
    properties of the destination channel's output type.
  custom_properties: The custom properties of the artifact, given as a
    dictionary from string keys to integer / string values.
  reimport: If set to True, will register a new artifact even if it already
    exists in the database.
  output_artifact_class: The class of the output artifact.
  mlmd_artifact_type: The MLMD artifact type of the Artifact to be created.

Returns:
  a dictionary with the only key `result` whose value is the Artifact.
def generate_output_dict(metadata_handler: metadata.Metadata, uri: str, properties: Dict[(str, Any)], custom_properties: Dict[(str, Any)], reimport: bool, output_artifact_class: Type[types.Artifact], mlmd_artifact_type: Optional[metadata_store_pb2.ArtifactType]=None) -> Dict[(str, List[types.Artifact])]:
    "Generates importer's output dict.\n\n  If there is already an artifact in MLMD with the same URI and properties /\n  custom properties, that artifact will be reused unless the `reimport`\n  argument is set to True.\n\n  Args:\n    metadata_handler: The handler of MLMD.\n    uri: The uri of the artifact.\n    properties: The properties of the artifact, given as a dictionary from\n      string keys to integer / string values. Must conform to the declared\n      properties of the destination channel's output type.\n    custom_properties: The custom properties of the artifact, given as a\n      dictionary from string keys to integer / string values.\n    reimport: If set to True, will register a new artifact even if it already\n      exists in the database.\n    output_artifact_class: The class of the output artifact.\n    mlmd_artifact_type: The MLMD artifact type of the Artifact to be created.\n\n  Returns:\n    a dictionary with the only key `result` whose value is the Artifact.\n  "
    return {IMPORT_RESULT_KEY: [_prepare_artifact(metadata_handler, uri=uri, properties=properties, custom_properties=custom_properties, output_artifact_class=output_artifact_class, mlmd_artifact_type=mlmd_artifact_type, reimport=reimport)]}