code: def create_test_pipeline():
      """Builds an external artifacts example pipeline."""
      tfx_root = "tfx_root"
      data_path = os.path.join(tfx_root, "data_path")
  
      example_gen = CsvExampleGen(input_base=data_path)
      example_gen.outputs["examples"].set_external(
          predefined_artifact_uris=["/external_directory/examples/123"]
      )
      return pipeline.Pipeline(
          pipeline_name=_pipeline_name,
          pipeline_root=_pipeline_root,
          components=[example_gen],
      )
  
imports: import os
  from tfx.components import CsvExampleGen
  from tfx.orchestration import pipeline
label_desc: Use image node_id 1 for calling a global function with example usage: create_test_pipeline() and returns: pipeline