code: def is_extended_validation(self, certificate: Certificate) -> bool:
          
          if not self.ev_oids:
              raise ValueError('No EV OIDs supplied for {} store - cannot detect EV certificates'.format(self.name))
  
          try:
              cert_policies_ext = certificate.extensions.get_extension_for_oid(ExtensionOID.CERTIFICATE_POLICIES)
          except ExtensionNotFound:
              return False
  
          for policy in cert_policies_ext.value:
              if policy.policy_identifier in self.ev_oids:
                  return True
          return False
docs: Is the supplied server certificate EV?