def _create_value(self, *args, **kwargs):
if not len(args):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if self.by_instance:<EOL><INDENT>field_type = args[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>field_type = args[<NUM_LIT:0>].__class__<EOL><DEDENT>function = self.registry.get(field_type, self.default)<EOL>if function is None:<EOL><INDENT>raise TypeError("<STR_LIT>" % field_type)<EOL><DEDENT>return function(*args, **kwargs)<EOL>
Lowest value generator.

Separated from __call__, because it seems that python
cache __call__ reference on module import