code: def testEntropy(self):
      # Estimate the entropy by computing the mutual information with itself.
      np.random.seed(23)
      r = np.random.randint(0, 8, 50000)  # 8 categories.
  
      for method in ["smaller_data", "larger_data"]:
          result = _MI(
              [r], [r], [True], [True], estimate_method=method, seed=21
          )
          self.assertAlmostEqual(result, 3, delta=1e-2)
  
          # Treat it as a ordinal variable.
          result = _MI(
              [r],
              [r],
              [False],
              [False],
              estimate_method=method,
              seed=21,
          )
          self.assertAlmostEqual(result, 3, delta=1e-2)
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from tensorflow_data_validation.utils import mutual_information_util
label_desc: Use image node_id 3 for calling the RanklabMutualInformationTest obj's underlying member method code with example usage: obj.testEntropy() without return types