code: def load_state_dict(self, state_dict: Dict[str, Any]) -> None:
      self._init_n_averaged = state_dict["n_averaged"]
      self._latest_update_epoch = state_dict["latest_update_epoch"]
      self._scheduler_state = state_dict["scheduler_state"]
      self._load_average_model_state(state_dict["average_model_state"])
  
imports: from copy import deepcopy
  from typing import Any, Callable, Dict, List, Optional, Union, cast
  import torch
  from torch import Tensor, nn
  from torch.optim.swa_utils import SWALR
  from typing_extensions import override
  import lightning.pytorch
  from lightning.fabric.utilities.types import LRScheduler
  from lightning.pytorch.callbacks.callback import Callback
  from lightning.pytorch.strategies import DeepSpeedStrategy
  from lightning.pytorch.strategies.fsdp import FSDPStrategy
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from lightning.pytorch.utilities.rank_zero import rank_zero_info, rank_zero_warn
  from lightning.pytorch.utilities.types import LRSchedulerConfig
label_desc: Use image node_id 16 for calling the StochasticWeightAveraging obj's underlying member method code with example usage: obj.load_state_dict(state_dict) without return types