code: def run_api_command_factory(args):
      return RunAutoTrainAPICommand(
          args.port,
          args.host,
          args.task,
      )
  
file_path: autotrain-advanced/src/autotrain/cli/run_api.py
imports: from argparse import ArgumentParser
  from .None import BaseAutoTrainCommand
label_desc: Use image node_id 1 for calling a global function with example usage: run_api_command_factory(args) and returns: RunAutoTrainAPICommand