code: def test_raise_on_extra_warning(pair_different_warnings):
      expected_category, extra_category = pair_different_warnings
      match = r"Caused unexpected warning\(s\)"
      with pytest.raises(AssertionError, match=match):
          with tm.assert_produces_warning(expected_category):
              warnings.warn("Expected warning", expected_category)
              warnings.warn("Unexpected warning NOT OK", extra_category)
  
imports: import warnings
  import pytest
  from pandas.errors import DtypeWarning, PerformanceWarning
  import pandas._testing
label_desc: Use image node_id 10 for calling a global function with example usage: test_raise_on_extra_warning(pair_different_warnings) without return types