def _obj_display(obj, display='<STR_LIT>'):
result = '<STR_LIT>'<EOL>if not display:<EOL><INDENT>result = str(obj)<EOL><DEDENT>else:<EOL><INDENT>template = Template(display)<EOL>context = Context({'<STR_LIT>':obj})<EOL>result = template.render(context)<EOL><DEDENT>return result<EOL>
Returns string representation of an object, either the default or based
    on the display template passed in.