code: def invoke_task(task, args):
      
      parser, proxy_args = get_task_parser(task)
      if proxy_args:
          return task(*args)
      else:
          pargs = parser.parse_args(args)
          return task(**vars(pargs))
docs: Parse args and invoke task function.
  
      :param task: task function to invoke
      :param args: arguments to the task (list of str)
      :return: result of task function
      :rtype: object