code: def _parse_caps_devices_features(node):
      '''
      Parse the devices or features list of the domain capatilities
      '''
      result = {}
      for child in node:
          if child.get('supported') == 'yes':
              enums = [_parse_caps_enum(node) for node in child.findall('enum')]
              result[child.tag] = {item[0]: item[1] for item in enums if item[0]}
      return resulf _parse_caps_devices_features(node):
      '''
      Parse the devices or features list of the domain capatilities
      '''
      result = {}
      for child in node:
          if child.get('supported') == 'yes':
              enums = [_parse_caps_enum(node) for node in child.findall('enum')]
              result[child.tag] = {item[0]: item[1] for item in enums if item[0]}
      return result
docs: Parse the devices or features list of the domain capatilities