import cProfile


def run_profiler(func, *args, **kwargs):
    """Runs the cProfiler.

    Args:
        func (callable): The function to profile.
        *args: Variable length argument list.
        **kwargs: Arbitrary keyword arguments.

    Returns:
        cProfile.Profile: The profiler results.
    """

    profile = cProfile.Profile()
    profile.enable()
    func(*args, **kwargs)
    profile.disable()

    return profile