def initializer_mock(request, cls):
    _patch = patch.object(cls, '__init__', return_value=None)
    request.addfinalizer(_patch.stop)
    return _patch.start()
Returns:
dataset/ETHPy150Open python-openxml/python-docx/tests/unitutil/mock.py/initializer_mock--crossover with--dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/match.py/Position.y