src/transformers/testing_utils.py
def require_tf(test_case):
    """
    Decorator marking a test that requires TensorFlow.

    These tests are skipped when TensorFlow isn't installed.

    """
    if not is_tf_available():
        return unittest.skip("test requires TensorFlow")(test_case)
    else:
        return test_case

    Decorator marking a test that requires TensorFlow.

    These tests are skipped when TensorFlow isn't installed.

    
Decorator marking a test that requires TensorFlow.
These tests are skipped when TensorFlow isn't installed.
Decorator marking a test that requires TensorFlow . These tests are skipped when TensorFlow isn ' t installed .
def require_tf(test_case):
    if not is_tf_available():
        return unittest.skip("test requires TensorFlow")(test_case)
    else:
        return test_case
def require_tf ( test_case ) : if not is_tf_available ( ) : return unittest . skip ( "test requires TensorFlow" ) ( test_case ) else : return test_case
Decorator marking a test that requires TensorFlow.
Decorator marking a test that requires TensorFlow .
"""
    Decorator marking a test that requires TensorFlow.

    These tests are skipped when TensorFlow isn't installed.

    """
test_case