code: def get_optimizer(cfg, model, is_dis=False, is_temp=False):
      optimizer = None
      if is_dis:
          lr = cfg.TRAIN.TEMP_LR if is_temp else cfg.TRAIN.DIS_LR
      else:
          lr = cfg.TRAIN.POSE_LR
      if cfg.TRAIN.OPTIMIZER == "sgd":
          optimizer = optim.SGD(
              model.parameters(),
              lr=lr,
              momentum=cfg.TRAIN.MOMENTUM,
              weight_decay=cfg.TRAIN.WD,
              nesterov=cfg.TRAIN.NESTEROV,
          )
      elif cfg.TRAIN.OPTIMIZER == "adam":
          optimizer = optim.Adam(
              model.parameters(), lr=lr, betas=(0.5, 0.9)
          )
  
      return optimizer
  
imports: import os
  import torch
  import torch.optim
  import numpy
  from sklearn.metrics import auc
label_desc: Use image node_id 14 for calling a global function with example usage: get_optimizer(cfg, model, is_dis, is_temp) and returns: optimizer