code: def main(args):
      shell = args.shell or util.active_shell()
      script = _completion_script(shell)
      if args.install:
          _install_completion_script(shell, script, args)
      else:
          sys.stdout.write(script)
          sys.stdout.write("\n")
  
imports: import glob
  import logging
  import os
  import shutil
  import sys
  import guild
  from guild import cli
  from guild import config
  from guild import util
label_desc: Use image node_id 1 for calling a global function with example usage: main(args) without return types