code: def optimizer_creator(model, config):
      return getattr(torch.optim, config.get("optim", "Adam"))(
          model.parameters(), lr=config.get("lr", 4e-3)
      )
  
imports: import warnings
  import torch
  import torch.nn
  from torch.nn.utils import weight_norm
  from zoo.orca.automl.model.base_pytorch_model import PytorchBaseModel, PYTORCH_REGRESSION_LOSS_MAP
label_desc: Use image node_id 2 for calling a global function with example usage: optimizer_creator(model, config) and returns: getattr