code: def test_workdir():
      fn = "test_work_dir"
      os.makedirs(fn)
      try:
          assert fn not in os.getcwd()
          with working_dir(fn):
              assert fn in os.getcwd()
          assert fn not in os.getcwd()
      finally:
          if os.path.isdir(fn):
              os.rmdir(fn)
  
file_path: hyperopt/hyperopt/tests/unit/test_utils.py
imports: import numpy
  from nose.tools import raises, eq_
  import shutil
  import os
  from hyperopt.utils import fast_isin
  from hyperopt.utils import get_most_recent_inds
  from hyperopt.utils import temp_dir, working_dir, get_closest_dir, path_split_all
label_desc: Use image node_id 7 for calling a global function with example usage: test_workdir() without return types