code: def _get_workingdir(res, default=""):
      if res in ("node", "aws"):
          cwd = (
              input("working path on remote machine [%s]:" % default)
              or default
          )
          if not cwd:
              logger.fatal("No path specified, exit!")
              exit(1)
      else:
          cwd = default or os.getcwd()
          cwd = input("working path, [default:%s]:" % cwd) or cwd
      return cwd
  
file_path: auptimizer/src/aup/init.py
imports: import importlib
  import json
  import logging
  import os
  from collections import defaultdict
  import click
  import coloredlogs
  from six.moves import input
  from .Proposer import PROPOSERS
  from .utils import LOG_LEVEL, get_default_connector, DEFAULT_AUPTIMIZER_PATH, get_from_options
label_desc: Use image node_id 4 for calling a global function with example usage: _get_workingdir(res, default) and returns: cwd