class_docstr: Test optimizers and related classes.
class_docstr_tok: ["Test","optimizers","and","related","classes","."]
docstr: Test creating an Adam optimizer.
docstr_tok: ["Test","creating","an","Adam","optimizer","."]
code: def test_adam_tf(self):
      """Test creating an Adam optimizer."""
      opt = optimizers.Adam(learning_rate=0.01)
      global_step = tf.Variable(0)
      tfopt = opt._create_tf_optimizer(global_step)
      assert isinstance(tfopt, tf.keras.optimizers.legacy.Adam)
  
imports: import deepchem
  import deepchem.models.optimizers
  import unittest
  import pytest
label_desc: Use image node_id 1 for calling the TestOptimizers obj's underlying member method code with example usage: obj.test_adam_tf() without return types