code: def chdir_to_script_directory():
      # We need to be in the same directory than the script so the commands in the dockerfiles work as
      # expected. But the script can be invoked from a different path
      base = os.path.split(os.path.realpath(__file__))[0]
      os.chdir(base)
  
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 6 for calling a global function with example usage: chdir_to_script_directory() without return types