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

    These tests are skipped when soundfile isn't installed.

    """
    if not is_soundfile_availble():
        return unittest.skip("test requires soundfile")(test_case)
    else:
        return test_case

    Decorator marking a test that requires soundfile

    These tests are skipped when soundfile isn't installed.

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

    These tests are skipped when soundfile isn't installed.

    """
test_case