def _parse_index_value(self, kwargs):
if len(kwargs) == <NUM_LIT:0>:<EOL><INDENT>return None, None<EOL><DEDENT>elif len(kwargs) > <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>".format("<STR_LIT:U+002C>".join(kwargs.keys())))<EOL><DEDENT>name, value = list(kwargs.items())[<NUM_LIT:0>]<EOL>if not name.startswith('<STR_LIT:value>'):<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>".format(name))<EOL><DEDENT>if name == '<STR_LIT:value>':<EOL><INDENT>return ('<STR_LIT:=>', value)<EOL><DEDENT>if not name.startswith('<STR_LIT>'):<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>".format(name))<EOL><DEDENT>operator = name[name.find('<STR_LIT>') + <NUM_LIT:2>:]<EOL>try:<EOL><INDENT>return (self._operator_values[operator], value)<EOL><DEDENT>except KeyError:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>.format(<EOL>op=operator,<EOL>valid="<STR_LIT:U+002C>".join(self._operator_values.keys()),<EOL>),<EOL>)<EOL><DEDENT>
Parse the HANDLER-supported subset of django's __ expression syntax