code: def remember_cwd():
      """
      Restore current directory when exiting context
      """
      curdir = os.getcwd()
      try:
          yield
      finally:
          os.chdir(curdir)
  
file_path: mxnet/ci/util.py
imports: import contextlib
  import logging
  import logging.config
  import os
  import subprocess
  import sys
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: remember_cwd() without return types