code: def get_original_command(max_width=80, full_python_path=False):
      """
      Return the original command line string that can be replayed nicely and wrapped for 80 char width.
  
      Args:
          max_width (`int`, `optional`, defaults to 80):
              The width to wrap for.
          full_python_path (`bool`, `optional`, defaults to `False`):
               Whether to replicate the full path or just the last segment (i.e. `python`).
      """
  
      cmd = []
  
      # deal with critical env vars
      env_keys = ["CUDA_VISIBLE_DEVICES"]
      for key in env_keys:
          val = os.environ.get(key, None)
          if val is not None:
              cmd.append(f"{key}={val}")
  
      # python executable (not always needed if the script is executable)
      python = (
          sys.executable
          if full_python_path
          else sys.executable.split("/")[-1]
      )
      cmd.append(python)
  
      # now the normal args
      cmd += list(map(shlex.quote, sys.argv))
  
      # split up into up to MAX_WIDTH lines with shell multi-line escapes
      lines = []
      current_line = ""
      while len(cmd) > 0:
          current_line += f"{cmd.pop(0)} "
          if (
              len(cmd) == 0
              or len(current_line) + len(cmd[0]) + 1 > max_width - 1
          ):
              lines.append(current_line)
              current_line = ""
      return "\\\n".join(lines)
  
imports: import argparse
  import datetime
  import io
  import itertools
  import json
  import math
  import os
  import platform
  import re
  import shlex
  import subprocess
  import sys
  from pathlib import Path
  from statistics import fmean
  import pandas
  import torch
  from tqdm import tqdm
  import transformers
label_desc: Use image node_id 1 for calling a global function with example usage: get_original_command(max_width, full_python_path) and returns: str