code: def test_ignore_extra_warning(pair_different_warnings):
      expected_category, extra_category = pair_different_warnings
      with tm.assert_produces_warning(
          expected_category, raise_on_extra_warnings=False
      ):
          warnings.warn("Expected warning", expected_category)
          warnings.warn("Unexpected warning OK", extra_category)
  
imports: import warnings
  import pytest
  from pandas.errors import DtypeWarning, PerformanceWarning
  import pandas._testing
label_desc: Use image node_id 9 for calling a global function with example usage: test_ignore_extra_warning(pair_different_warnings) without return types