config.unsupported = True try: import torch if torch.__version__ >= "2.3.0": print("Enabling Torch v2.3+ tests") config.unsupported = False except ModuleNotFoundError: ...