code: def test_duplicate_task_group_id():
      """Testing automatic suffix assignment for duplicate group_id"""
  
      from airflow.decorators import task
  
      @task(task_id="start_task")
      def task_start():
          """Dummy Task which is First Task of Dag"""
          print("[Task_start]")
  
      @task(task_id="end_task")
      def task_end():
          """Dummy Task which is Last Task of Dag"""
          print("[Task_End]")
  
      # Creating Tasks
      @task(task_id="task")
      def task_1():
          """Dummy Task1"""
          print("[Task1]")
  
      @task(task_id="task")
      def task_2():
          """Dummy Task2"""
          print("[Task2]")
  
      @task(task_id="task1")
      def task_3():
          """Dummy Task3"""
          print("[Task3]")
  
      @task_group_decorator("task_group1")
      def task_group1():
          task_start()
          task_1()
          task_2()
  
      @task_group_decorator(group_id="task_group1")
      def task_group2():
          task_3()
  
      @task_group_decorator(group_id="task_group1")
      def task_group3():
          task_end()
  
      execution_date = pendulum.parse("20201109")
      with DAG(
          dag_id="example_duplicate_task_group_id",
          start_date=execution_date,
          tags=["example"],
      ) as dag:
          task_group1()
          task_group2()
          task_group3()
      node_ids = {
          "id": None,
          "children": [
              {
                  "id": "task_group1",
                  "children": [
                      {"id": "task_group1.start_task"},
                      {"id": "task_group1.task"},
                      {"id": "task_group1.task__1"},
                  ],
              },
              {
                  "id": "task_group1__1",
                  "children": [{"id": "task_group1__1.task1"}],
              },
              {
                  "id": "task_group1__2",
                  "children": [{"id": "task_group1__2.end_task"}],
              },
          ],
      }
  
      assert (
          extract_node_id(task_group_to_dict(dag.task_group))
          == node_ids
      )
  
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 18 for calling a global function with example usage: test_duplicate_task_group_id() without return types