code: def ignore_warnings(geos_version, category):
      if shapely.geos_version < geos_version:
          with warnings.catch_warnings():
              warnings.filterwarnings("ignore", category=category)
              yield
      else:
          yield
  
file_path: shapely/shapely/tests/common.py
imports: import warnings
  from contextlib import contextmanager
  import numpy
  import pytest
  import shapely
label_desc: Use image node_id 2 for calling a global function with example usage: ignore_warnings(geos_version, category) without return types