def METHOD_NAME(*args, **kwargs):
    if METHOD_NAME.called:
        return
    with lock:
        if METHOD_NAME.called:
            return
        rv = func(*args, **kwargs)
        METHOD_NAME.called = True
        return rv