code: def decode_base64_and_inflate(value, ignore_zip=False):
          
          encoded = OneLogin_Saml2_Utils.b64decode(value)
          try:
              return zlib.decompress(encoded, -15)
          except zlib.error:
              if not ignore_zip:
                  raise
          return encoded
docs: base64 decodes and then inflates according to RFC1951
          :param value: a deflated and encoded string
          :type value: string
          :param ignore_zip: ignore zip errors
          :returns: the string after decoding and inflating
          :rtype: string