code: def set_lr(optimizer: torch.optim.Optimizer, new_lr: float) -> None:
      """
      Sets the optimizer lr to the specified value.
      Args:
          optimizer (optim): the optimizer using to optimize the current network.
          new_lr (float): the new learning rate to set.
      """
      for param_group in optimizer.param_groups:
          param_group["lr"] = new_lr
  
file_path: pytorchvideo/pytorchvideo_trainer/pytorchvideo_trainer/module/lr_policy.py
imports: import math
  from dataclasses import dataclass
  from typing import Callable, List
  import torch
  from hydra.core.config_store import ConfigStore
  from omegaconf import MISSING
label_desc: Use image node_id 7 for calling a global function with example usage: set_lr(optimizer, new_lr) without return types