code: def is_cudnn_snafu(exception: BaseException) -> bool:
      # For/because of https://github.com/pytorch/pytorch/issues/4107
      return (
          isinstance(exception, RuntimeError)
          and len(exception.args) == 1
          and "cuDNN error: CUDNN_STATUS_NOT_SUPPORTED."
          in exception.args[0]
      )
  
file_path: pytorch-lightning/src/lightning/pytorch/utilities/memory.py
imports: import gc
  from typing import Any
  import torch
  from lightning_utilities.core.apply_func import apply_to_collection
  from torch import Tensor
label_desc: Use image node_id 4 for calling a global function with example usage: is_cudnn_snafu(exception) and returns: unknown