code: def test_no_pretty_print_with_decl(parser, geom_df):
      expected = (
          "<?xml version='1.0' encoding='utf-8'?>\n"
          "<data><row><index>0</index><shape>square</shape>"
          "<degrees>360</degrees><sides>4.0</sides></row><row>"
          "<index>1</index><shape>circle</shape><degrees>360"
          "</degrees><sides/></row><row><index>2</index><shape>"
          "triangle</shape><degrees>180</degrees><sides>3.0</sides>"
          "</row></data>"
      )
  
      output = geom_df.to_xml(pretty_print=False, parser=parser)
      output = equalize_decl(output)
  
      # etree adds space for closed tags
      if output is not None:
          output = output.replace(" />", "/>")
  
      assert output == expected
  
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 39 for calling a global function with example usage: test_no_pretty_print_with_decl(parser, geom_df) without return types