def identity(*args, **kwargs):
    """Return args, acting as identity for mocking functions."""
    # pylint: disable=unused-argument
    # Here, kwargs will be ignored.
    if len(args) == 1:
        return args[0]
    return args