code: def _parse_caps_loader(node):
      '''
      Parse the <loader> element of the domain capabilities.
      '''
      enums = [_parse_caps_enum(enum) for enum in node.findall('enum')]
      result = {item[0]: item[1] for item in enums if item[0]}
  
      values = [child.text for child in node.findall('value')]
  
      if values:
          result['values'] = values
  
      return resulf _parse_caps_loader(node):
      '''
      Parse the <loader> element of the domain capabilities.
      '''
      enums = [_parse_caps_enum(enum) for enum in node.findall('enum')]
      result = {item[0]: item[1] for item in enums if item[0]}
  
      values = [child.text for child in node.findall('value')]
  
      if values:
          result['values'] = values
  
      return result
docs: Parse the <loader> element of the domain capabilities.