human
Complete the below
@pytest.fixture()
def search_fn():

    ''''Returns a search function that always succeeds.'
    '''
 ... Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.
    class _Mock(object, ):
        performed_search = False
        def __call__(self):
            self.performed_search = True
            return []
    return _Mock()