class_docstr: Context manager for setup/teardown tasks.
  
  :meta private:
code: def push_setup_teardown_task(
      cls, operator: AbstractOperator | list[AbstractOperator]
  ):
      if isinstance(operator, list):
          if operator[0].is_teardown:
              cls._push_tasks(operator)
          elif operator[0].is_setup:
              cls._push_tasks(operator, setup=True)
      elif operator.is_teardown:
          cls._push_tasks(operator)
      elif operator.is_setup:
          cls._push_tasks(operator, setup=True)
      cls.active = True
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, cast
  from airflow.exceptions import AirflowException
label_desc: Use image node_id 10 for calling the BaseSetupTeardownContext obj's underlying member method code with example usage: obj.push_setup_teardown_task(cls, operator) without return types