def initializer_mock(request, cls):
    _patch = patch.object(cls, '__init__', return_value=None)
    request.addfinalizer(_patch.stop)
    return _patch.start()
Return a mock for the __init__ method on *cls* where the patch is
dataset/ETHPy150Open python-openxml/python-docx/tests/unitutil/mock.py/initializer_mock