code: def _do_momentum_update(
      prev_params: Iterable[Parameter],
      params: Iterable[Parameter],
      m: float,
  ) -> None:
      """Updates the weights of the previous parameters."""
      for prev_param, param in zip(prev_params, params):
          prev_param.data = prev_param.data * m + param.data * (1.0 - m)
  
file_path: lightly/lightly/models/_momentum.py
imports: import copy
  from typing import Iterable, Tuple
  import torch
  import torch.nn
  from torch import Tensor
  from torch.nn.parameter import Parameter
label_desc: Use image node_id 2 for calling a global function with example usage: _do_momentum_update(prev_params, params, m) without return types