src/transformers/testing_utils.py
def require_scatter(test_case):
    """
    Decorator marking a test that requires PyTorch Scatter. These tests are skipped when PyTorch Scatter isn't
    installed.
    """
    if not is_scatter_available():
        return unittest.skip("test requires PyTorch Scatter")(test_case)
    else:
        return test_case

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