code: def test_elems_wrong_type(parser, geom_df):
      with pytest.raises(
          TypeError, match=("is not a valid type for elem_cols")
      ):
          geom_df.to_xml(
              elem_cols='"shape", "degree", "sides"', parser=parser
          )
  
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 23 for calling a global function with example usage: test_elems_wrong_type(parser, geom_df) without return types