@wraps(fn)
def compat_fn(*args, **kwargs):
    warnings.warn('{} is deprecated and will be removed in a future release. Use {} instead.'.format(old_name, fn.__name__), DeprecationWarning)
    return fn(*args, **kwargs)
@wraps(fn)
def compat_fn(*args, **kwargs):
    warnings.warn('{} is deprecated and will be removed in a future release. Use {} instead.'.format(old_name, fn.__name__), DeprecationWarning)
    return fn(*args, **kwargs)