code: def get_extension_name(ext):
      
  
      # In cryptography 2.2, SCTs return "Unknown OID"
      if ext.oid == ExtensionOID.PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS:
          return 'SignedCertificateTimestampList'
  
      # Until at least cryptography 2.6.1, PrecertPoison has no name
      #   https://github.com/pyca/cryptography/issues/4817
      elif ca_settings.CRYPTOGRAPHY_HAS_PRECERT_POISON:  # pragma: no branch, pragma: only cryptography>=2.4
          if ext.oid == ExtensionOID.PRECERT_POISON:
              return 'PrecertPoison'
  
      # uppercase the FIRST letter only ("keyUsage" -> "KeyUsage")
      return re.sub('^([a-z])', lambda x: x.groups()[0].upper(), ext.oid._name)
docs: Function to get the name of an extension.