code: def _convert_xml_to_metrics(xml, metrics):
      '''
      <Version>version-number</Version>
      <Enabled>true|false</Enabled>
      <IncludeAPIs>true|false</IncludeAPIs>
      <RetentionPolicy>
          <Enabled>true|false</Enabled>
          <Days>number-of-days</Days>
      </RetentionPolicy>
      '''
      # Version
      metrics.version = xml.find('Version').text
  
      # Enabled
      metrics.enabled = _bool(xml.find('Enabled').text)
  
      # IncludeAPIs
      include_apis_element = xml.find('IncludeAPIs')
      if include_apis_element is not None:
          metrics.include_apis = _bool(include_apis_element.text)
  
      # RetentionPolicy
      _convert_xml_to_retention_policy(xml.find('RetentionPolicy'), metrics.retention_policyf _convert_xml_to_metrics(xml, metrics):
      '''
      <Version>version-number</Version>
      <Enabled>true|false</Enabled>
      <IncludeAPIs>true|false</IncludeAPIs>
      <RetentionPolicy>
          <Enabled>true|false</Enabled>
          <Days>number-of-days</Days>
      </RetentionPolicy>
      '''
      # Version
      metrics.version = xml.find('Version').text
  
      # Enabled
      metrics.enabled = _bool(xml.find('Enabled').text)
  
      # IncludeAPIs
      include_apis_element = xml.find('IncludeAPIs')
      if include_apis_element is not None:
          metrics.include_apis = _bool(include_apis_element.text)
  
      # RetentionPolicy
      _convert_xml_to_retention_policy(xml.find('RetentionPolicy'), metrics.retention_policy)
docs: <Version>version-number</Version>
      <Enabled>true|false</Enabled>
      <IncludeAPIs>true|false</IncludeAPIs>
      <RetentionPolicy>
          <Enabled>true|false</Enabled>
          <Days>number-of-days</Days>
      </RetentionPolicy>