code: def assert_no_cuda_mismatch():
      cuda_major, cuda_minor = installed_cuda_version()
      sys_cuda_version = f"{cuda_major}.{cuda_minor}"
      torch_cuda_version = ".".join(torch.version.cuda.split(".")[:2])
      # This is a show-stopping error, should probably not proceed past this
      if sys_cuda_version != torch_cuda_version:
          if (
              cuda_major == 11
              and torch_cuda_version.split(".")[0] == "11"
          ):
              # it works to build against installed cuda-11 while torch was built with cuda-11
              return
          raise Exception(
              f"Installed CUDA version {sys_cuda_version} does not match the "
              f"version torch was compiled with {torch.version.cuda}, unable to compile "
              "cuda/cpp extensions without a matching cuda version."
          )
  
imports: import os
  import time
  import torch
  import importlib
  from pathlib import Path
  import subprocess
  from abc import ABC, abstractmethod
label_desc: Use image node_id 3 for calling a global function with example usage: assert_no_cuda_mismatch() without return types