code: def artifact_type(name, role, stage, output_path):
      from fate.components.core import Role, Stage, load_component
  
      role = Role.from_str(role)
      stage = Stage.from_str(stage)
      cpn = load_component(name, stage=stage)
      if output_path:
          cpn.dump_runtime_io_yaml(role, stage, output_path)
      else:
          print(cpn.dump_runtime_io_yaml(role, stage, output_path))
  
label_desc: Use image node_id 1 for calling a global function with example usage: artifact_type(name, role, stage, output_path) without return types