src/transformers/testing_utils.py
def require_faiss(test_case):
    """Decorator marking a test that requires faiss."""
    if not is_faiss_available():
        return unittest.skip("test requires `faiss`")(test_case)
    else:
        return test_case
Decorator marking a test that requires faiss.
Decorator marking a test that requires faiss.
Decorator marking a test that requires faiss .
def require_faiss(test_case):
    if not is_faiss_available():
        return unittest.skip("test requires `faiss`")(test_case)
    else:
        return test_case
def require_faiss ( test_case ) : if not is_faiss_available ( ) : return unittest . skip ( "test requires `faiss`" ) ( test_case ) else : return test_case
Decorator marking a test that requires faiss.
Decorator marking a test that requires faiss .
"""Decorator marking a test that requires faiss."""
test_case