code: def run_huggingface(
      model,
      prompt_len,
      gen_len,
      cut_gen_len,
      batch_size,
      num_nodes,
      num_gpus_per_node,
      use_ds,
      cpu,
      disk,
      dummy,
      log_file=None,
      pkl_file=None,
  ):
      assert num_nodes == 1
      if use_ds:
          cmd = f"deepspeed --num_gpus {num_gpus_per_node} hf_opt.py "
      else:
          cmd = f"python hf_opt.py --num-gpus {num_gpus_per_node} "
  
      cmd += (
          f"--model {model} "
          f"--prompt-len {prompt_len} --gen-len {gen_len} "
          f"--batch-size {batch_size} "
      )
  
      if cut_gen_len:
          cmd += f"--cut-gen-len {cut_gen_len} "
      if cpu:
          cmd += "--cpu "
      if disk:
          cmd += "--disk "
      if dummy:
          cmd += "--dummy "
  
      if log_file is not None:
          cmd += f"--log-file {log_file} "
      if pkl_file is not None:
          cmd += f"--pkl-file {pkl_file} "
  
      run_cmd(cmd)
  
imports: import argparse
  from dataclasses import dataclass
  import time
  from flexgen.utils import run_cmd
label_desc: Use image node_id 1 for calling a global function with example usage: run_huggingface(model, prompt_len, gen_len, cut_gen_len, batch_size, num_nodes, num_gpus_per_node, use_ds, cpu, disk, dummy, log_file, pkl_file) without return types