code: def test_can_trace_all_traceable_quantities(self):
      x = tf.Variable(5.0)
      trace_fn = lambda traceable_quantities: traceable_quantities
      results = minimize(
          loss_fn=lambda: tf.reduce_sum((x - 1.0) ** 2),
          num_steps=10,
          optimizer=_get_adam_optimizer(0.1),
          trace_fn=trace_fn,
      )
      self.evaluate(tf1.global_variables_initializer())
      self.evaluate(results)
  
imports: import collections
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python import optimizer
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal import tf_keras
  from tensorflow_probability.python.math.minimize import minimize
  from tensorflow_probability.python.math.minimize import minimize_stateless
label_desc: Use image node_id 2 for calling the MinimizeTests obj's underlying member method code with example usage: obj.test_can_trace_all_traceable_quantities() without return types