code: def override_args(tool=None, *args):
      old = sys.argv[:]
      try:
          if tool:
              sys.argv[0] = tool
          sys.argv[1:] = args
          yield
      finally:
          sys.argv = old
  
imports: import contextlib
  import multiprocessing
  import os
  import shutil
  import sys
  import tempfile
  import time
  import traceback
  import cloudpickle
  import mock
  from horovod.runner.util.threads import in_thread
label_desc: Use image node_id 7 for calling a global function with example usage: override_args(tool) without return types