code: def _get_optimizer(name):
      if name.lower() == "sgd":
          optim = torch.optim.SGD
      elif name.lower() == "adam":
          optim = torch.optim.Adam
  
      return optim
  
imports: import contextlib
  import glob
  import math
  import os
  import numpy
  import scipy.signal
  from tensorboard import TensorBoard
  import torch
  from torch import nn
  import torch.nn.parallel
  from torch.autograd import Variable
  import models
  import utils
label_desc: Use image node_id 3 for calling a global function with example usage: _get_optimizer(name) and returns: optim