code: def _deactivate_requires_grad(params: Iterable[Parameter]) -> None:
      """Deactivates the requires_grad flag for all parameters."""
      for param in params:
          param.requires_grad = False
  
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 1 for calling a global function with example usage: _deactivate_requires_grad(params) without return types