class_docstr: Tests for Hager Zhang line search algorithm.
class_docstr_tok: ["Tests","for","Hager","Zhang","line","search","algorithm","."]
docstr: Tests that the evaluation count is reported correctly.
docstr_tok: ["Tests","that","the","evaluation","count","is","reported","correctly","."]
code: def test_eval_count(self, start):
      """Tests that the evaluation count is reported correctly."""
      if tf.executing_eagerly():
          self._test_eval_count_eager(start)
      else:
          self._test_eval_count_graph(start)
  
imports: import collections
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.optimizer.linesearch.hager_zhang import hager_zhang
label_desc: Use image node_id 6 for calling the HagerZhangTest obj's underlying member method code with example usage: obj.test_eval_count(start) without return types