code: def _ignore_torch_cuda_oom():
      """A context which ignores CUDA OOM exception from pytorch."""
      try:
          yield
      except RuntimeError as e:
          if "CUDA out of memory. " in str(e):
              pass
          else:
              raise
  
file_path: mmdetection/projects/XDecoder/xdecoder/utils.py
imports: import logging
  from contextlib import contextmanager
  from functools import wraps
  import torch
  from mmcv.cnn.bricks.wrappers import obsolete_torch_version
  from torch.nn import functional
label_desc: Use image node_id 2 for calling a global function with example usage: _ignore_torch_cuda_oom() without return types