code: def test_unsuported_compression(parser, geom_df):
      with pytest.raises(
          ValueError, match="Unrecognized compression type"
      ):
          with tm.ensure_clean() as path:
              geom_df.to_xml(path, parser=parser, compression="7z")
  
imports: from __future__ import annotations
  from io import BytesIO, StringIO
  import os
  import numpy
  import pytest
  import pandas.util._test_decorators
  from pandas import NA, DataFrame, Index
  import pandas._testing
  from pandas.io.common import get_handle
  from pandas.io.xml import read_xml
label_desc: Use image node_id 58 for calling a global function with example usage: test_unsuported_compression(parser, geom_df) without return types