code: def testAllCases(self, kernel):
      new_kernel = util.enable_store_parameters_in_results(kernel)
  
      flat_kernel = [kernel]
      while "inner_kernel" in kernel.parameters:
          kernel = kernel.parameters["inner_kernel"]
          flat_kernel.append(kernel)
  
      flat_new_kernel = [new_kernel]
      while "inner_kernel" in new_kernel.parameters:
          new_kernel = new_kernel.parameters["inner_kernel"]
          flat_new_kernel.append(new_kernel)
  
      self.assertEqual(len(flat_kernel), len(flat_new_kernel))
      for kernel, new_kernel in zip(flat_kernel, flat_new_kernel):
          self.assertIsNot(kernel, new_kernel)
          self.assertIs(type(kernel), type(new_kernel))
          if "store_parameters_in_results" in new_kernel.parameters:
              self.assertTrue(
                  new_kernel.parameters["store_parameters_in_results"]
              )
  
imports: import collections
  import warnings
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import lognormal
  from tensorflow_probability.python.distributions import mvn_tril
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.mcmc.internal import util
label_desc: Use image node_id 1 for calling the EnableStoreParametersInResultsTest obj's underlying member method code with example usage: obj.testAllCases(kernel) without return types