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