code: def cd(path):
      
      _cdhist.append(pwd())  # Push to history.
      path = abspath(path)
      os.chdir(path)
      return path
docs: Change working directory.
  
      Returns absolute path to new working directory.