def _handle_variant(self):
def the_func(a_tuple, variant=<NUM_LIT:0>):<EOL><INDENT>"""<STR_LIT>"""<EOL>(signature, an_obj) = a_tuple<EOL>(func, sig) = self.COMPLETE.parseString(signature)[<NUM_LIT:0>]<EOL>assert sig == signature<EOL>(xformed, _) = func(an_obj, variant=variant + <NUM_LIT:1>)<EOL>return (xformed, xformed.variant_level)<EOL><DEDENT>return (the_func, '<STR_LIT:v>')<EOL>
Generate the correct function for a variant signature.

:returns: function that returns an appropriate value
:rtype: ((str * object) or list)-> object