def wrap_func_like_safe(func, func_like, *args, **kwargs):
    '\n    Safe implementation for wrap_func_like(), attempts to use func_like(),\n    if the shape keyword argument, falls back to func().\n    '
    try:
        return func_like(*args, **kwargs)
    except TypeError:
        return func(*args, **kwargs)
Safe implementation for wrap_func_like(), attempts to use func_like(),
if the shape keyword argument, falls back to func().
def wrap_func_like_safe(func, func_like, *args, **kwargs):
    '\n    Safe implementation for wrap_func_like(), attempts to use func_like(),\n    if the shape keyword argument, falls back to func().\n    '
    try:
        return func_like(*args, **kwargs)
    except TypeError:
        return func(*args, **kwargs)