code: def enable_recomputing() -> Generator[None, None, None]:
      """Makes :func:`is_recomputing` return :data:`True` within a context."""
      orig = thread_local.is_recomputing
      thread_local.is_recomputing = True
      try:
          yield
      finally:
          thread_local.is_recomputing = orig
  
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 2 for calling a global function with example usage: enable_recomputing() without return types