def load_formatter_fn(formatter):
obj = util.load_object(formatter)<EOL>if not hasattr(obj, '<STR_LIT>'):<EOL><INDENT>obj.ispartial = util.ispartial<EOL><DEDENT>return obj<EOL>
>>> load_formatter_fn('logagg.formatters.basescript') #doctest: +ELLIPSIS
<function basescript at 0x...>