code: def main_body(args):
      parser = argparse.ArgumentParser("towhee", "towhee")
      subparsers = parser.add_subparsers(
          dest="action", description="towhee command line tool."
      )
  
      actions = {"init": InitCommand, "server": ServerCommand}
  
      for _, impl in actions.items():
          impl.install(subparsers)
  
      parsed = parser.parse_args(args)
      if parsed.action is None:
          parser.print_help()
      else:
          actions[parsed.action](parsed)()
  
imports: import sys
  import argparse
  from towhee.command.initialize import InitCommand
  from towhee.command.service import ServerCommand
label_desc: Use image node_id 1 for calling a global function with example usage: main_body(args) without return types