code: def pushd(target):
      saved = os.getcwd()
      os.chdir(target)
      try:
          yield saved
      finally:
          os.chdir(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 5 for calling a global function with example usage: pushd(target) without return types