code: def preserve_cwd(path, func, *args):
      orig_cwd = os.getcwd()
      try:
          os.chdir(path)
          func(*args)
      finally:
          os.chdir(orig_cwd)
  
file_path: neuralcoref/bin/cythonize.py
imports: import os
  import sys
  import json
  import hashlib
  import subprocess
  import argparse
label_desc: Use image node_id 2 for calling a global function with example usage: preserve_cwd(path, func) without return types