code: def action_factory(name, parameter=False):
      
      if parameter:
          return partial(ParameterizedActionNeed, name)
      else:
          return ActionNeed(name)
docs: Factory method for creating new actions (w/wo parameters).
  
      :param name: Name of the action (prefix with your module name).
      :param parameter: Determines if action should take parameters or not.
          Default is ``False``.