code: def test_build_optimizer():
      adadelta = build_optimizer("Adadelta")
      assert isinstance(adadelta, tf.compat.v1.train.AdadeltaOptimizer)
  
      adagrad = build_optimizer("Adagrad")
      assert isinstance(adagrad, tf.compat.v1.train.AdagradOptimizer)
  
      adam = build_optimizer("Adam")
      assert isinstance(adam, tf.compat.v1.train.AdamOptimizer)
  
      ftrl = build_optimizer(
          "Ftrl", **{"l1_regularization_strength": 0.001}
      )
      assert isinstance(ftrl, tf.compat.v1.train.FtrlOptimizer)
  
      momentum = build_optimizer("Momentum", **{"momentum": 0.5})
      assert isinstance(momentum, tf.compat.v1.train.MomentumOptimizer)
  
      rmsprop = build_optimizer("RMSProp")
      assert isinstance(rmsprop, tf.compat.v1.train.RMSPropOptimizer)
  
      sgd = build_optimizer("SGD")
      assert isinstance(
          sgd, tf.compat.v1.train.GradientDescentOptimizer
      )
  
file_path: recommenders/tests/unit/recommenders/utils/test_tf_utils.py
imports: import os
  import pytest
  import numpy
  import pandas
  import itertools
  from recommenders.utils.constants import DEFAULT_USER_COL, DEFAULT_ITEM_COL, DEFAULT_RATING_COL, SEED
  from recommenders.evaluation.python_evaluation import rmse
label_desc: Use image node_id 3 for calling a global function with example usage: test_build_optimizer() without return types