code: def main(args):
      _init_logging(args)
      _maybe_debug_listen(args)
      _maybe_apply_cwd(args)
      _maybe_apply_guild_home(args)
      _apply_guild_patch()
      _register_cmd_context_handlers()
  
imports: import logging
  import os
  from guild import cli
  from guild import config
  from guild import log
label_desc: Use image node_id 1 for calling a global function with example usage: main(args) without return types