code: def suppress_warnings(fn):
      def wrapper(*args, **kwargs):
          with warnings.catch_warnings():
              warnings.simplefilter("ignore")
              fn(*args, **kwargs)
  
      return wrapper
  
imports: import contextlib
  import numbers
  import os
  import re
  import warnings
  from itertools import product
  import numpy
  import pytest
  import torch
  import torch.cuda
  from numpy.testing import assert_allclose
  from pytest import approx
label_desc: Use image node_id 4 for calling a global function with example usage: suppress_warnings(fn) and returns: wrapper