code: def parse_when_constraint_expressions(
      *predicates: IntoExpr | Iterable[IntoExpr],
      **constraints: Any,
  ) -> PyExpr:
      all_predicates: list[pl.Expr] = []
      for p in predicates:
          all_predicates.extend(
              wrap_expr(x) for x in parse_as_list_of_expressions(p)
          )
  
      if "condition" in constraints:
          if isinstance(constraints["condition"], pl.Expr):
              all_predicates.append(constraints.pop("condition"))
              issue_deprecation_warning(
                  "`when` no longer takes a 'condition' parameter.\n"
                  "To silence this warning you should omit the keyword and pass "
                  "as a positional argument instead.",
                  version="0.19.16",
              )
  
      all_predicates.extend(
          F.col(name).eq(value) for name, value in constraints.items()
      )
      if not all_predicates:
          raise ValueError(
              "No predicates or constraints provided to `when`."
          )
  
      return (
          F.all_horizontal(*all_predicates)
          if len(all_predicates) > 1
          else all_predicates[0]
      )._pyexpr
  
file_path: polars/py-polars/polars/utils/_parse_expr_input.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Iterable
  import polars._reexport
  from polars import functions
  from polars.exceptions import ComputeError
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import issue_deprecation_warning
label_desc: Use image node_id 6 for calling a global function with example usage: parse_when_constraint_expressions() and returns: unknown