class_docstr: Context manager that ensures there are at least N free stackframes (for
  a reasonable value of N).
class_docstr_tok: ["Context","manager","that","ensures","there","are","at","least","N","free","stackframes","(","for","a","reasonable","value","of","N",")","."]
code: def __exit__(self, *args, **kwargs):
      if self.new_maxdepth == sys.getrecursionlimit():
          sys.setrecursionlimit(self.old_maxdepth)
      else:  # pragma: no cover
          warnings.warn(
              "The recursion limit will not be reset, since it was changed "
              "from another thread or during execution of a test.",
              HypothesisWarning,
              stacklevel=2,
          )
  
imports: import array
  import sys
  import warnings
  from random import Random
  from typing import Callable, Dict, Generic, Iterable, Iterator, List, Optional, Sequence, Tuple, TypeVar, Union, overload
  from hypothesis.errors import HypothesisWarning
label_desc: Use image node_id 2 for calling the ensure_free_stackframes obj's underlying member method code with example usage: obj.__exit__() without return types