docs: def deserialize_pem(cert_pem):
      """Deserialize PEM (Base64) encoded X.509 v3 certificate.
  
      Args:
        cert_pem: str or bytes
          PEM (Base64) encoded X.509 v3 certificate
  
      Returns:
        cert_obj: cryptography.Certificate
  
      """
      if isinstance(cert_pem, str):
          cert_pem = cert_pem.encode("utf-8")
      return cryptography.x509.load_pem_x509_certificate(
          data=cert_pem, backend=cryptography.hazmat.backends.default_backend()
      )