code: def get_optimizer(model, learning_rate):
      g_clip = P.nn.ClipGradByNorm(50.0)  # experimental
      opt = P.optimizer.Adam(
          learning_rate=learning_rate,
          parameters=model.parameters(),
          grad_clip=g_clip,
      )
      return opt
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_optimizer(model, learning_rate) and returns: opt