code: def master_params(optimizer):
      """
      Generator expression that iterates over the params owned by ``optimizer``.
  
      Args:
          optimizer: An optimizer previously returned from ``amp.initialize``.
      """
      for group in optimizer.param_groups:
          for p in group["params"]:
              yield p
  
imports: import torch
label_desc: Use image node_id 3 for calling a global function with example usage: master_params(optimizer) without return types