code: def save_argv(repl=None):
      saved = sys.argv[:]
      if repl is not None:
          sys.argv[:] = repl
      try:
          yield saved
      finally:
          sys.argv[:] = saved
  
imports: import os
  import sys
  import tempfile
  import operator
  import functools
  import itertools
  import re
  import contextlib
  import pickle
  import textwrap
  import builtins
  import pkg_resources
  from distutils.errors import DistutilsError
  from pkg_resources import working_set
label_desc: Use image node_id 2 for calling a global function with example usage: save_argv(repl) without return types