code: def _handle_torch_singular(exception: Exception) -> bool:
      """Exception handler for errors thrown on (numerically) singular matrices."""
      # the actual type of the exception thrown is torch._C._LinAlgError
      if isinstance(exception, RuntimeError):
          msg = str(exception)
          return (
              "singular" in msg
              or "input is not positive-definite" in msg
          )
      return False
  
file_path: pyro/pyro/ops/integrator.py
imports: import warnings
  from typing import Callable, Dict
  from torch.autograd import grad
label_desc: Use image node_id 5 for calling a global function with example usage: _handle_torch_singular(exception) and returns: False, unknown