def __call__(cls, *args, **kwargs):
if args and isinstance(args[<NUM_LIT:0>], HttpRequest):<EOL><INDENT>instance = super(ResourceMetaclass, cls).__call__()<EOL>return instance.__call__(*args, **kwargs)<EOL><DEDENT>return super(ResourceMetaclass, cls).__call__(*args, **kwargs)<EOL>
Tests to see if the first argument is an HttpRequest object, creates
        an instance, and calls it with the arguments.