code: def is_flag(action):
      
      action_types = [_StoreTrueAction, _StoreFalseAction, _StoreConstAction]
      return any(list(map(lambda Action: isinstance(action, Action), action_types)))
docs: _actions which are either storeconst, store_bool, etc..