code: def resolve_input_artifacts(
      *,
      pipeline_node: pipeline_pb2.PipelineNode,
      metadata_handle: mlmd_cm.HandleLike,
  ) -> Union[Trigger, Skip]:
      """Resolve input artifacts according to a pipeline node IR definition.
  
      Args:
        pipeline_node: Current PipelineNode on which input resolution is running.
        metadata_handle: Metadata or MLMDConnectionManager instance for handling
          mlmd db connections.
  
      Raises:
        InputResolutionError: If input resolution went wrong.
  
      Returns:
        Trigger: a non-empty list of input dicts. All resolved input dicts should be
            executed.
        Skip: an empty list. Should effectively skip the current component
            execution.
      """
      try:
          node_inputs = pipeline_node.inputs
          resolved = node_inputs_resolver.resolve(
              metadata_handle, node_inputs
          )
          return Trigger(resolved) if resolved else Skip()
      except exceptions.SkipSignal as e:
          logging.info("Input resolution skipped; reason = %s", e)
          return Skip()
      except exceptions.InputResolutionError as e:
          error_msg = f"Error while resolving inputs for {pipeline_node.node_info.id}: {e}"
          e.args = (error_msg,)
          raise
      except Exception as e:
          raise exceptions.InputResolutionError(
              f"Error while resolving inputs for {pipeline_node.node_info.id}"
          ) from e
  
imports: from typing import Dict, Sequence, Union
  from absl import logging
  from tfx import types
  from tfx.dsl.compiler import placeholder_utils
  from tfx.orchestration import mlmd_connection_manager
  from tfx.orchestration.portable.input_resolution import exceptions
  from tfx.orchestration.portable.input_resolution import node_inputs_resolver
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.utils import typing_utils
label_desc: Use image node_id 1 for calling a global function with example usage: resolve_input_artifacts() and returns: unknown, Skip