class_docstr: Groupwise RankingEstimator tests.
docstr: Load a static checkpoint and test eval function.
docstr_tok: ["Load","a","static","checkpoint","and","test","eval","function","."]
code: def test_eval(self):
      """Load a static checkpoint and test eval function."""
      self._initialize_checkpoint()
      self._assert_checkpoint(
          expected_global_step=100,
          expected_bias=[1.0, 1.0],
          expected_weights=[[1.0, 1.0], [2.0, 2.0], [3.0, 3.0]],
      )
  
      eval_output = self._estimator.evaluate(
          input_fn=_train_input_fn, steps=1
      )
      self.assertAllClose(
          {
              "global_step": 100,
              "loss": 6.75,
              "labels_mean": 0.3333333,
              "logits_mean": 300.833343,
          },
          dict(
              (name, eval_output[name])
              for name in [
                  "global_step",
                  "loss",
                  "labels_mean",
                  "logits_mean",
              ]
          ),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl.testing import parameterized
  import tensorflow
  from tensorflow import estimator
  from tensorflow_ranking.python import feature
  from tensorflow_ranking.python import head
  from tensorflow_ranking.python import losses
  from tensorflow_ranking.python import model
label_desc: Use image node_id 7 for calling the GroupwiseRankingEstimatorTest obj's underlying member method code with example usage: obj.test_eval() without return types