code: def get_1x_lr_params(model):
      """
      This generator returns all the parameters of the net except for
      the last classification layer. Note that for each batchnorm layer,
      requires_grad is set to False in deeplab_resnet.py, therefore this function does not return
      any batchnorm parameter
      """
      b = [model.xception_features]
      for i in range(len(b)):
          for k in b[i].parameters():
              if k.requires_grad:
                  yield k
  
imports: import math
  import torch
  import torch.nn
  import torch.nn.functional
  import torch.utils.model_zoo
label_desc: Use image node_id 2 for calling a global function with example usage: get_1x_lr_params(model) without return types