def parse_options(self, kwargs):
kwargs = {camelize(key): value for key, value in kwargs.items()}<EOL>for key in kwargs.keys():<EOL><INDENT>assert key in self.valid_options, (<EOL>'<STR_LIT>'<EOL>.format(key, '<STR_LIT:U+002CU+0020>'.join(self.valid_options))<EOL>)<EOL>assert isinstance(kwargs[key], self.valid_options[key]), (<EOL>'<STR_LIT>'<EOL>.format(key, self.valid_options[key])<EOL>)<EOL><DEDENT>return kwargs<EOL>
Validate the provided kwargs and return options as json string.