code: def from_file_expected():
      return """\
  <?xml version='1.0' encoding='utf-8'?>
  <data>
    <row>
      <index>0</index>
      <category>cooking</category>
      <title>Everyday Italian</title>
      <author>Giada De Laurentiis</author>
      <year>2005</year>
      <price>30.0</price>
    </row>
    <row>
      <index>1</index>
      <category>children</category>
      <title>Harry Potter</title>
      <author>J K. Rowling</author>
      <year>2005</year>
      <price>29.99</price>
    </row>
    <row>
      <index>2</index>
      <category>web</category>
      <title>Learning XML</title>
      <author>Erik T. Ray</author>
      <year>2003</year>
      <price>39.95</price>
    </row>
  </data>"""
  
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 3 for calling a global function with example usage: from_file_expected() and returns: str