code: def test_clone_optimizer():
      lr, momentum, clipnorm, clipvalue = np.random.random(size=4)
      optimizer = SGD(
          lr=lr,
          momentum=momentum,
          clipnorm=clipnorm,
          clipvalue=clipvalue,
      )
      clone = clone_optimizer(optimizer)
  
      assert isinstance(clone, SGD)
      assert K.get_value(optimizer.lr) == K.get_value(clone.lr)
      assert K.get_value(optimizer.momentum) == K.get_value(
          clone.momentum
      )
      assert optimizer.clipnorm == clone.clipnorm
      assert optimizer.clipvalue == clone.clipvalue
  
file_path: keras-rl/tests/rl/test_util.py
imports: from __future__ import division
  import pytest
  import numpy
  from numpy.testing import assert_allclose
  from keras.models import Model, Sequential
  from keras.layers import Input, Dense, Concatenate
  from keras.optimizers import SGD
  import keras.backend
  from rl.util import clone_optimizer, clone_model, huber_loss, WhiteningNormalizer
label_desc: Use image node_id 3 for calling a global function with example usage: test_clone_optimizer() without return types