code: def _update_source_meta(
      metadata,
      config: "TaskConfigSpec",
      output_artifact_key,
      output_index=None,
  ):
      from fate.components.core.spec.artifact import ArtifactSource
  
      metadata.source = ArtifactSource(
          task_id=config.task_id,
          party_task_id=config.party_task_id,
          task_name=config.task_name,
          component=config.component,
          output_artifact_key=output_artifact_key,
          output_index=output_index,
      )
  
imports: import logging
  import typing
  from typing import Dict, Generic, List, Optional, Union
  from fate.components.core.essential import Role, Stage
  from .artifacts._base_type import AT, MM, ArtifactDescribe, M, _ArtifactsType, _ArtifactType
label_desc: Use image node_id 1 for calling a global function with example usage: _update_source_meta(metadata, config, output_artifact_key, output_index) without return types