code: def _structify_expression(expr: Expr) -> Expr:
      unaliased_expr = expr.meta.undo_aliases()
      if unaliased_expr.meta.has_multiple_outputs():
          try:
              expr_name = expr.meta.output_name()
          except ComputeError:
              expr = F.struct(expr)
          else:
              expr = F.struct(unaliased_expr).alias(expr_name)
      return expr
  
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 7 for calling a global function with example usage: _structify_expression(expr) and returns: expr