code: def optimizer_creator(model, config):
      return getattr(torch.optim, config.get("optim", "Adam"))(
          model.parameters(), lr=config.get("lr", 0.001)
      )
  
file_path: BigDL/python/chronos/src/bigdl/chronos/model/VanillaLSTM_pytorch.py
imports: import torch
  import torch.nn
  from pytorch_lightning import seed_everything
  from bigdl.chronos.pytorch.model_wrapper.normalization import NormalizeTSModel
  from bigdl.chronos.pytorch.model_wrapper.decomposition import DecompositionTSModel
label_desc: Use image node_id 2 for calling a global function with example usage: optimizer_creator(model, config) and returns: getattr