code: def __init__(self, *args, **kwargs):
      logger.warning(
          "HivemindGradScaler was renamed to hivemind.GradScaler, this reference will be removed in v1.1"
      )
      super().__init__(*args, **kwargs)
  
imports: import contextlib
  import threading
  from copy import deepcopy
  from typing import Dict, Optional
  import torch
  from torch.cuda.amp import GradScaler
  from torch.cuda.amp.grad_scaler import OptState, _refresh_per_optimizer_state
  from torch.optim import Optimizer
  import hivemind
  from hivemind.utils.logging import get_logger
label_desc: Use image node_id 1 to create a new HivemindGradScaler object from inherited base classes: GradScaler with example: obj = HivemindGradScaler()