input: Write a python function to parse an XML file and print all item attributes.
  assert parse_xml('data.xml') == [{'id': '1', 'name': 'item1'}, {'id': '2', 'name': 'item2'}]
  assert parse_xml('another_data.xml') == [{'id': '3', 'name': 'item3'}, {'id': '4', 'name': 'item4'}, {'id': '5', 'name': 'item5'}]
output: def parse_xml(file_path):
      import xml.etree.ElementTree as ET
      
      tree = ET.parse(file_path)
      root = tree.getroot()
      
      items = []
      for item in root.findall('item'):
          attributes = {k: v for k, v in item.attrib.items()}
          items.append(attributes)
      
      return items