code: def optimizer_creator(model, config):
      return optim.Adam(model.parameters(), lr=config["lr"])
  
file_path: BigDL/python/orca/tutorial/NCF/pytorch_train_spark_dataframe.py
imports: import torch.nn
  import torch.optim
  from process_spark_dataframe import prepare_data
  from pytorch_model import NCF
  from utils import *
  from bigdl.orca.learn.pytorch import Estimator
  from bigdl.orca.learn.metrics import Accuracy, Precision, Recall
label_desc: Use image node_id 2 for calling a global function with example usage: optimizer_creator(model, config) and returns: optim