code: def branch_task(
      python_callable: Callable | None = None,
      multiple_outputs: bool | None = None,
      **kwargs,
  ) -> TaskDecorator:
      """
      Wrap a python function into a BranchPythonOperator.
  
      For more information on how to use this operator, take a look at the guide:
      :ref:`concepts:branching`
  
      Accepts kwargs for operator kwarg. Can be reused in a single DAG.
  
      :param python_callable: Function to decorate
      :param multiple_outputs: if set, function return value will be
          unrolled to multiple XCom values. Dict will unroll to xcom values with keys as XCom keys.
          Defaults to False.
      """
      return task_decorator_factory(
          python_callable=python_callable,
          multiple_outputs=multiple_outputs,
          decorated_operator_class=_BranchPythonDecoratedOperator,
          **kwargs,
      )
  
file_path: airflow/airflow/decorators/branch_python.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Callable
  from airflow.decorators.base import task_decorator_factory
  from airflow.decorators.python import _PythonDecoratedOperator
  from airflow.operators.python import BranchPythonOperator
label_desc: Use image node_id 1 for calling a global function with example usage: branch_task(python_callable, multiple_outputs) and returns: task_decorator_factory