def __init__(self, text=None, *args, **kwargs):
    if ('_members' not in self.__class__.__dict__ 
        or self.__class__._members is None):
      self.__class__._members = tuple(self.__class__._list_xml_members())
    for member_name, member_type in self.__class__._members:
      if member_name in kwargs:
        setattr(self, member_name, kwargs[member_name])
      else:
        if isinstance(member_type, list):
          setattr(self, member_name, [])
        else:
          setattr(self, member_name, None)
    self._other_elements = []
    self._other_attributes = {}
    if text is not None:
      self.text = text
dataset/ETHPy150Open CollabQ/CollabQ/vendor/atom/core.py/XmlElement.__init__/original