input: Write a python function to read XML data and return a list of ModelObjects.
  assert [obj.name for obj in read_xml('<root><model name="model1">value1</model><model name="model2">value2</model></root>')] == ['model1', 'model2']
  assert [obj.value for obj in read_xml('<root><model name="model1">value1</model><model name="model2">value2</model></root>')] == ['value1', 'value2']
  assert read_xml('<root></root>') == []
output: import xml.etree.ElementTree as ET
  
  class ModelObject:
      def __init__(self, name, value):
          self.name = name
          self.value = value
  
  def read_xml(xml_data):
      root = ET.fromstring(xml_data)
      model_objects = []
      
      for model in root.findall('model'):
          name = model.get('name')
          value = model.text
          model_objects.append(ModelObject(name, value))
      
      return model_objects