class_docstr: Remove this fall-back once support for Python 3.10 is removed.
class_docstr_tok: ["Remove","this","fall-back","once","support","for","Python","3.10","is","removed","."]
code: def __enter__(self) -> None:
      self._dirs.append(os.getcwd())
      os.chdir(self.path)
  
imports: from __future__ import annotations
  import contextlib
  import filecmp
  import os
  import re
  import shutil
  import sys
  import unicodedata
  from io import StringIO
  from os import path
  from typing import TYPE_CHECKING, Any
  from sphinx.deprecation import _deprecation_warning
label_desc: Use image node_id 2 for calling the _chdir obj's underlying member method code with example usage: obj.__enter__() without return types