code: def test_override_dag_default_args_nested_tg():
      @dag(
          dag_id="test_dag",
          start_date=pendulum.parse("20200101"),
          default_args={
              "retries": 1,
              "owner": "x",
          },
      )
      def pipeline():
          @task_group(
              group_id="task_group",
              default_args={
                  "owner": "y",
                  "execution_timeout": timedelta(seconds=10),
              },
          )
          def tg():
              @task_group(group_id="nested_task_group")
              def nested_tg():
                  @task_group(group_id="another_task_group")
                  def another_tg():
                      EmptyOperator(task_id="task")
  
                  another_tg()
  
              nested_tg()
  
          tg()
  
      test_dag = pipeline()
      test_task = (
          test_dag.task_group_dict["task_group"]
          .children["task_group.nested_task_group"]
          .children["task_group.nested_task_group.another_task_group"]
          .children[
              "task_group.nested_task_group.another_task_group.task"
          ]
      )
      assert test_task.retries == 1
      assert test_task.owner == "y"
      assert test_task.execution_timeout == timedelta(seconds=10)
  
file_path: airflow/tests/decorators/test_task_group.py
imports: from __future__ import annotations
  from datetime import timedelta
  import pendulum
  import pytest
  from airflow.decorators import dag, task_group
  from airflow.models.expandinput import DictOfListsExpandInput, ListOfDictsExpandInput, MappedArgument
  from airflow.operators.empty import EmptyOperator
  from airflow.utils.task_group import MappedTaskGroup
label_desc: Use image node_id 12 for calling a global function with example usage: test_override_dag_default_args_nested_tg() without return types