code: def test_stylesheet_with_etree(geom_df):
      xsl = """\
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method="xml" encoding="utf-8" indent="yes" />
      <xsl:strip-space elements="*"/>
  
      <xsl:template match="@*|node(*)">
          <xsl:copy>
              <xsl:apply-templates select="@*|node()"/>
          </xsl:copy>
      </xsl:template>"""
  
      with pytest.raises(
          ValueError,
          match=("To use stylesheet, you need lxml installed"),
      ):
          geom_df.to_xml(parser="etree", stylesheet=xsl)
  
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 51 for calling a global function with example usage: test_stylesheet_with_etree(geom_df) without return types