class_docstr: Inner class of _WandbSetup.
class_docstr_tok: ["Inner","class","of","_WandbSetup","."]
code: def _teardown(self, exit_code: Optional[int] = None) -> None:
      exit_code = exit_code or 0
      self._teardown_manager(exit_code=exit_code)
  
imports: import logging
  import os
  import sys
  import threading
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  import wandb
  from .None import wandb_manager, wandb_settings
  from .lib import config_util, server, tracelog
label_desc: Use image node_id 15 for calling the _WandbSetup__WandbSetup obj's underlying member method code with example usage: obj._teardown(exit_code) without return types