class_docstr: Namespace for string related expressions.
class_docstr_tok: ["Namespace","for","string","related","expressions","."]
docstr: Decode a value using the provided encoding.
  
  Parameters
  ----------
  encoding : {'hex', 'base64'}
      The encoding to use.
  strict
      Raise an error if the underlying value cannot be decoded,
      otherwise mask out with a null value.
docstr_tok: ["Decode","a","value","using","the","provided","encoding",".","Parameters","--","--","--","--","--","encoding",":","{","'hex","'",",","'base64","'","}","The","encoding","to","use",".","strict","Raise","an","error","if","the","underlying","value","can","not","be","decoded",",","otherwise","mask","out","with","a","null","value","."]
code: def decode(
      self, encoding: TransferEncoding, *, strict: bool = True
  ) -> Expr:
      """
      Decode a value using the provided encoding.
  
      Parameters
      ----------
      encoding : {'hex', 'base64'}
          The encoding to use.
      strict
          Raise an error if the underlying value cannot be decoded,
          otherwise mask out with a null value.
  
      """
      if encoding == "hex":
          return wrap_expr(self._pyexpr.str_hex_decode(strict))
      elif encoding == "base64":
          return wrap_expr(self._pyexpr.str_base64_decode(strict))
      else:
          raise ValueError(
              f"`encoding` must be one of {{'hex', 'base64'}}, got {encoding!r}"
          )
  
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING
  import polars._reexport
  from polars import functions
  from polars.datatypes import Date, Datetime, Int32, Time, py_type_to_dtype
  from polars.exceptions import ChronoFormatWarning
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter, rename_use_earliest_to_ambiguous
  from polars.utils.various import find_stacklevel
label_desc: Use image node_id 26 for calling the ExprStringNameSpace obj's underlying member method code with example usage: obj.decode(encoding) and returns: wrap_expr, wrap_expr