class_docstr: Context function
class_docstr_tok: ["Context","function"]
code: def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
      if self.configure_logging:
          logging.shutdown()
      assert self.temp_dir is not None
      shutil.rmtree(self.temp_dir, ignore_errors=True)
  
imports: import copy
  import logging
  import os
  import re
  import shutil
  import string
  import subprocess
  import sys
  import tempfile
  from contextlib import contextmanager
  from difflib import unified_diff
  from pathlib import Path
  from subprocess import PIPE, Popen
  from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union
  from omegaconf import Container, DictConfig, OmegaConf
  from hydra._internal.hydra import Hydra
  from hydra._internal.utils import detect_task_name
  from hydra.core.global_hydra import GlobalHydra
  from hydra.core.utils import JobReturn, validate_config_path
  from hydra.types import TaskFunction
label_desc: Use image node_id 4 for calling the SweepTaskFunction obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) without return types