code: def _preserve_environment(names):
      log.debug("_preserve_environment(%r)" % (names))
      env = {name: os.environ.get(name) for name in names}
      return env
  
file_path: catboost/contrib/python/numpy/py3/numpy/distutils/exec_command.py
imports: import os
  import sys
  import subprocess
  import locale
  import warnings
  from numpy.distutils.misc_util import is_sequence, make_temp_file
  from numpy.distutils import log
label_desc: Use image node_id 6 for calling a global function with example usage: _preserve_environment(names) and returns: env