code: def test_build_task_group_depended_by_task():
      """A decorator-based task group should be able to be used as a relative to operators."""
  
      from airflow.decorators import dag as dag_decorator, task
  
      @dag_decorator(start_date=pendulum.now())
      def build_task_group_depended_by_task():
          @task
          def task_start():
              return "[Task_start]"
  
          @task
          def task_end():
              return "[Task_end]"
  
          @task
          def task_thing(value):
              return f"[Task_thing {value}]"
  
          @task_group_decorator
          def section_1():
              task_thing(1)
              task_thing(2)
  
          task_start() >> section_1() >> task_end()
  
      dag = build_task_group_depended_by_task()
      task_thing_1 = dag.task_dict["section_1.task_thing"]
      task_thing_2 = dag.task_dict["section_1.task_thing__1"]
  
      # Tasks in the task group don't depend on each other; they both become
      # downstreams to task_start, and upstreams to task_end.
      assert (
          task_thing_1.upstream_task_ids
          == task_thing_2.upstream_task_ids
          == {"task_start"}
      )
      assert (
          task_thing_1.downstream_task_ids
          == task_thing_2.downstream_task_ids
          == {"task_end"}
      )
  
imports: from __future__ import annotations
  from datetime import timedelta
  import pendulum
  import pytest
  from airflow.decorators import dag, setup, task, task_group, teardown
  from airflow.exceptions import TaskAlreadyInTaskGroup
  from airflow.models.baseoperator import BaseOperator
  from airflow.models.dag import DAG
  from airflow.models.xcom_arg import XComArg
  from airflow.operators.bash import BashOperator
  from airflow.operators.empty import EmptyOperator
  from airflow.operators.python import PythonOperator
  from airflow.utils.dag_edges import dag_edges
  from airflow.utils.task_group import TaskGroup, task_group_to_dict
  from tests.models import DEFAULT_DATE
label_desc: Use image node_id 14 for calling a global function with example usage: test_build_task_group_depended_by_task() and returns: str, str, str, value, str