code: def test_build_task_group_with_prefix():
      """
      Tests that prefix_group_id turns on/off prefixing of task_id with group_id.
      """
      execution_date = pendulum.parse("20200101")
      with DAG(
          "test_build_task_group_with_prefix", start_date=execution_date
      ) as dag:
          task1 = EmptyOperator(task_id="task1")
          with TaskGroup("group234", prefix_group_id=False) as group234:
              task2 = EmptyOperator(task_id="task2")
  
              with TaskGroup("group34") as group34:
                  task3 = EmptyOperator(task_id="task3")
  
                  with TaskGroup(
                      "group4", prefix_group_id=False
                  ) as group4:
                      task4 = EmptyOperator(task_id="task4")
  
          task5 = EmptyOperator(task_id="task5")
          task1 >> group234
          group34 >> task5
  
      assert task2.task_id == "task2"
      assert group34.group_id == "group34"
      assert task3.task_id == "group34.task3"
      assert group4.group_id == "group34.group4"
      assert task4.task_id == "task4"
      assert task5.task_id == "task5"
      assert group234.get_child_by_label("task2") == task2
      assert group234.get_child_by_label("group34") == group34
      assert group4.get_child_by_label("task4") == task4
  
      assert extract_node_id(
          task_group_to_dict(dag.task_group), include_label=True
      ) == {
          "id": None,
          "label": None,
          "children": [
              {
                  "id": "group234",
                  "label": "group234",
                  "children": [
                      {
                          "id": "group34",
                          "label": "group34",
                          "children": [
                              {
                                  "id": "group34.group4",
                                  "label": "group4",
                                  "children": [
                                      {"id": "task4", "label": "task4"}
                                  ],
                              },
                              {"id": "group34.task3", "label": "task3"},
                              {
                                  "id": "group34.downstream_join_id",
                                  "label": "",
                              },
                          ],
                      },
                      {"id": "task2", "label": "task2"},
                      {"id": "group234.upstream_join_id", "label": ""},
                  ],
              },
              {"id": "task1", "label": "task1"},
              {"id": "task5", "label": "task5"},
          ],
      }
  
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 5 for calling a global function with example usage: test_build_task_group_with_prefix() without return types