code: def __init__(self) -> None:
      self.is_checkpointing = False
      self.is_recomputing = False
  
imports: from collections import deque
  from contextlib import contextmanager
  import threading
  from typing import TYPE_CHECKING, Deque, Generator, List, Optional, Tuple, Union
  import torch
  from torch import ByteTensor, Tensor
  import torch.autograd
  from .dependency import fork, join
  from .microbatch import Batch
  from .phony import get_phony
label_desc: Use image node_id 1 to create a new ThreadLocal object from inherited base classes: threading with example: obj = ThreadLocal()