code: def ignore_torch_deprecation_warnings():
      with warnings.catch_warnings():
          # Ignore deprecation warning until funsor updates to torch>=1.10.
          warnings.filterwarnings(
              "ignore", "torch.triangular_solve is deprecated"
          )
          yield
  
file_path: pyro/pyro/ops/linalg.py
imports: import math
  import warnings
  from contextlib import contextmanager
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: ignore_torch_deprecation_warnings() without return types