def mocked_elasticsearch(mocked_elasticsearch_module_patcher):
    """
    Fixture that resets all of the patched ElasticSearch API functions
    """
    for mock in mocked_elasticsearch_module_patcher.patcher_mocks:
        mock.reset_mock()
    return mocked_elasticsearch_module_patcher