class_docstr: Test hungarian matcher.
docstr: Checks cost matrix consistency for one-hot and index representations.
docstr_tok: ["Checks","cost","matrix","consistency","for","one-hot","and","index","representations","."]
code: def test_cost_onehot_consistency(self):
      """Checks cost matrix consistency for one-hot and index representations."""
      diff = jnp.max(
          jnp.abs(self.cost_matrix - self.cost_matrix_one_hot)
      )
      self.assertLess(diff, EPS)
  
imports: from typing import Optional
  from absl.testing import absltest
  from absl.testing import parameterized
  import jax
  import jax.numpy
  import numpy
  from scenic.model_lib import matchers
  from scenic.model_lib.base_models import box_utils
  import scipy.optimize
label_desc: Use image node_id 2 for calling the MatchingTest obj's underlying member method code with example usage: obj.test_cost_onehot_consistency() without return types