class_docstr: TaskGroup context is used to keep the current TaskGroup when TaskGroup is used as ContextManager.
class_docstr_tok: ["TaskGroup","context","is","used","to","keep","the","current","TaskGroup","when","TaskGroup","is","used","as","ContextManager","."]
docstr: Push a TaskGroup into the list of managed TaskGroups.
docstr_tok: ["Push","a","TaskGroup","into","the","list","of","managed","TaskGroups","."]
code: def push_context_managed_task_group(cls, task_group: TaskGroup):
      """Push a TaskGroup into the list of managed TaskGroups."""
      if cls._context_managed_task_group:
          cls._previous_context_managed_task_groups.append(
              cls._context_managed_task_group
          )
      cls._context_managed_task_group = task_group
      cls.active = True
  
imports: from __future__ import annotations
  import copy
  import functools
  import operator
  import weakref
  from typing import TYPE_CHECKING, Any, Generator, Iterator, Sequence
  import re2
  from airflow.compat.functools import cache
  from airflow.exceptions import AirflowDagCycleException, AirflowException, DuplicateTaskIdFound, TaskAlreadyInTaskGroup
  from airflow.models.taskmixin import DAGNode
  from airflow.serialization.enums import DagAttributeTypes
  from airflow.utils.helpers import validate_group_key
label_desc: Use image node_id 1 for calling the TaskGroupContext obj's underlying member method code with example usage: obj.push_context_managed_task_group(cls, task_group) without return types