code: def main(args):
      start_time = time.time()
      for step_num in args.step:
          print(f"---=== Running Step {step_num} ===---")
          step_start_time = time.time()
  
          cmd = get_cmd(args, step_num)
          launch_cmd(args, step_num, cmd)
  
          step_time = int(time.time() - step_start_time)
          time_str = str(datetime.timedelta(seconds=step_time))
          print(f"---=== Finished Step {step_num} in {time_str} ===---")
  
      total_time = int(time.time() - start_time)
      time_str = str(datetime.timedelta(seconds=total_time))
  
      if len(args.step) > 1:
          print(
              f"---=== Finished Steps {args.step} in {time_str} ===---"
          )
  
file_path: deepspeedexamples/applications/DeepSpeed-Chat/e2e_rlhf.py
imports: import argparse
  import warnings
  import subprocess
  import os
  import datetime
  import time
  import sys
label_desc: Use image node_id 9 for calling a global function with example usage: main(args) without return types