def _wraps_with_cleaned_sig(wrapped, num_args_to_remove):
    'Simplify the function signature by removing arguments from it.\n\n    Removes the first N arguments from function signature (where N is\n    num_args_to_remove). This is useful since function signatures are visible\n    in our user-facing docs, and many methods in DeltaGenerator have arguments\n    that users have no access to.\n\n    Note that "self" is ignored by default. So to remove both "self" and the\n    next argument you\'d pass num_args_to_remove=1.\n    '
    args_to_remove = ((None,) * num_args_to_remove)
    fake_wrapped = functools.partial(wrapped, *args_to_remove)
    fake_wrapped.__doc__ = wrapped.__doc__
    fake_wrapped.__name__ = wrapped.__name__
    fake_wrapped.__module__ = wrapped.__module__
    return functools.wraps(fake_wrapped)
Simplify the function signature by removing arguments from it.

Removes the first N arguments from function signature (where N is
num_args_to_remove). This is useful since function signatures are visible
in our user-facing docs, and many methods in DeltaGenerator have arguments
that users have no access to.

Note that "self" is ignored by default. So to remove both "self" and the
next argument you'd pass num_args_to_remove=1.
def _wraps_with_cleaned_sig(wrapped, num_args_to_remove):
    'Simplify the function signature by removing arguments from it.\n\n    Removes the first N arguments from function signature (where N is\n    num_args_to_remove). This is useful since function signatures are visible\n    in our user-facing docs, and many methods in DeltaGenerator have arguments\n    that users have no access to.\n\n    Note that "self" is ignored by default. So to remove both "self" and the\n    next argument you\'d pass num_args_to_remove=1.\n    '
    args_to_remove = ((None,) * num_args_to_remove)
    fake_wrapped = functools.partial(wrapped, *args_to_remove)
    fake_wrapped.__doc__ = wrapped.__doc__
    fake_wrapped.__name__ = wrapped.__name__
    fake_wrapped.__module__ = wrapped.__module__
    return functools.wraps(fake_wrapped)