code: def _move_state_into(
      source: Dict[str, Any],
      destination: Dict[str, Union[Any, _Stateful]],
      keys: Optional[Set[str]] = None,
  ) -> None:
      """Takes the state from the source destination and moves it into the destination dictionary.
  
      If an object in the destination follows the stateful protocol, it loads the source state via ``load_state_dict``.
  
      """
      keys = set(source) if keys is None else keys & set(source)
      for key in keys:
          state = source.pop(key)
          if key in destination and isinstance(
              destination[key], _Stateful
          ):
              destination[key].load_state_dict(state)
          else:
              destination[key] = state
  
imports: import os
  import pickle
  import warnings
  from functools import partial
  from io import BytesIO
  from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Optional, OrderedDict, Sequence, Set, Union
  import torch
  from lightning_utilities.core.apply_func import apply_to_collection
  from torch import Tensor
  from torch._C import _TensorMeta
  from torch.nn import Parameter
  from typing_extensions import override
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_2_0
  from lightning.fabric.utilities.types import _PATH, _Stateful
label_desc: Use image node_id 3 for calling a global function with example usage: _move_state_into(source, destination, keys) without return types