def create_patch(mpatch, request):
    """ Helper method for creating patch for the patch functions
    implementing *start* and *stop*.

    **Args:**

    *mpatch*:  e.g. return value of *mock.patch()*

    *request*: pytest *request*.
    """
    request.addfinalizer(mpatch.stop)
    return mpatch.start()