examples/tests/trainer/test_trainer_ext.py
def require_fairscale(test_case):
    """
    Decorator marking a test that requires fairscale
    """
    if not is_fairscale_available():
        return unittest.skip("test requires fairscale")(test_case)
    else:
        return test_case

    Decorator marking a test that requires fairscale
    
Decorator marking a test that requires fairscale
Decorator marking a test that requires fairscale
def require_fairscale(test_case):
    if not is_fairscale_available():
        return unittest.skip("test requires fairscale")(test_case)
    else:
        return test_case
def require_fairscale ( test_case ) : if not is_fairscale_available ( ) : return unittest . skip ( "test requires fairscale" ) ( test_case ) else : return test_case
Decorator marking a test that requires fairscale
Decorator marking a test that requires fairscale
"""
    Decorator marking a test that requires fairscale
    """
test_case