config.unsupported = True try: import torch if "2.5.0" <= str(torch.__version__): print("Enabling sparsity propagation tests") config.unsupported = False except ModuleNotFoundError: ...