class_docstr: Wrapper for `contextlib.ExitStack` which enters a collection of context managers. Adaptation of `ContextManagers`
  in the `fastcore` library.
class_docstr_tok: ["Wrapper","for","`","contextlib.ExitStack","`","which","enters","a","collection","of","context","managers",".","Adaptation","of","`","ContextManagers","`","in","the","`","fastcore","`","library","."]
code: def __init__(self, context_managers: List[ContextManager]):
      self.context_managers = context_managers
      self.stack = ExitStack()
  
imports: import inspect
  import tempfile
  from collections import OrderedDict, UserDict
  from collections.abc import MutableMapping
  from contextlib import ExitStack, contextmanager
  from dataclasses import fields, is_dataclass
  from enum import Enum
  from typing import Any, ContextManager, Iterable, List, Tuple
  import numpy
  from .import_utils import is_flax_available, is_tf_available, is_torch_available, is_torch_fx_proxy
label_desc: Use image node_id 1 to create a new ContextManagers object  with example: obj = ContextManagers(context_managers)