code: def invoke(invocation):
      
      (invocation.module_path,
       invocation.module_source) = get_module_data(invocation.module_name)
      planner = _get_planner(invocation)
  
      if invocation.wrap_async:
          response = _invoke_async_task(invocation, planner)
      elif planner.should_fork():
          response = _invoke_isolated_task(invocation, planner)
      else:
          _propagate_deps(invocation, planner, invocation.connection.context)
          response = invocation.connection.get_chain().call(
              ansible_mitogen.target.run_module,
              kwargs=planner.get_kwargs(),
          )
  
      return invocation.action._postprocess_response(response)
docs: Find a Planner subclass corresnding to `invocation` and use it to invoke
      the module.
  
      :param Invocation invocation:
      :returns:
          Module return dict.
      :raises ansible.errors.AnsibleError:
          Unrecognized/unsupported module type.