def validate_state(self, model, context=None):
result = Result()<EOL>for state_validator in self.state:<EOL><INDENT>error = state_validator.run(<EOL>value=model,<EOL>model=model,<EOL>context=context<EOL>)<EOL>if error:<EOL><INDENT>result.add_state_errors(error)<EOL><DEDENT><DEDENT>return result<EOL>
Validate model state
Run state validators and return and result object.
:param model:  object or dict
:param context: object, dict or None
:return: shiftschema.result.Result