def METHOD_NAME(test):
    def descriptor():
        raise Exception("unexpected call")
    if hasattr(test.context, "__module__"):
        return test.context
    name = test.context.__name__
    if "." in name:
        name, descriptor.__name__ = name.rsplit(".", 1)
    else:
        descriptor.__name__ = "*"
    descriptor.__module__ = name
    return descriptor