class_docstr: Test class for tf & pytorch make_optimizer functions.
docstr: Test make_optimizer raises value error.
docstr_tok: ["Test","make_optimizer","raises","value","error","."]
code: def test_tf_make_optimizer_raise_value_error(self):
      """Test make_optimizer raises value error."""
      lr = 0.123
      optimizer_type = (
          tf.compat.v1.train.AdamOptimizer,
          {"learning_rate": lr},
      )
      with pytest.raises(ValueError):
          _ = make_optimizer(optimizer_type, learning_rate=lr)
  
imports: import csv
  import math
  import tempfile
  import akro
  import dowel
  from dowel import logger, tabular
  import numpy
  import pytest
  import tensorflow
  import torch
  from garage import _Default, EnvSpec, EpisodeBatch, log_multitask_performance, log_performance, make_optimizer, rollout, StepType
  from garage.envs import GymEnv
  from tests.fixtures import TfGraphTestCase
  from tests.fixtures.envs.dummy import DummyBoxEnv
  from tests.fixtures.policies import DummyPolicy
label_desc: Use image node_id 3 for calling the TestOptimizerInterface obj's underlying member method code with example usage: obj.test_tf_make_optimizer_raise_value_error() without return types