code: def _is_artifact_reimported(
      output_artifacts: Dict[str, List[types.Artifact]], output_key: str
  ) -> bool:
      # The artifacts are reimported only when there are artifacts in the output
      # dict and ids has been assign to them.
      return bool(output_artifacts[output_key]) and all(
          (bool(a.id) for a in output_artifacts[output_key])
      )
  
file_path: tfx/tfx/orchestration/portable/importer_node_handler.py
imports: from typing import Any, Dict, List, cast
  from absl import logging
  from tfx import types
  from tfx.dsl.components.common import importer
  from tfx.orchestration import data_types_utils
  from tfx.orchestration import metadata
  from tfx.orchestration.portable import data_types
  from tfx.orchestration.portable import execution_publish_utils
  from tfx.orchestration.portable import inputs_utils
  from tfx.orchestration.portable import system_node_handler
  from tfx.orchestration.portable.mlmd import context_lib
  from tfx.proto.orchestration import pipeline_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _is_artifact_reimported(output_artifacts, output_key) and returns: unknown