docstr: Tests that splitting and merging back can reproduce the input.
docstr_tok: ["Tests","that","splitting","and","merging","back","can","reproduce","the","input","."]
code: def test_split_merge_random(self, num_levels):
      """Tests that splitting and merging back can reproduce the input."""
      tensor_shape = np.random.randint(1, 5, size=4).tolist()
      image_random = np.random.uniform(size=tensor_shape)
  
      split = pyramid.split(image_random, num_levels=num_levels)
      merge = pyramid.merge(split)
  
      self.assertAllClose(image_random, merge)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  from six.moves import range
  import tensorflow
  from tensorflow_graphics.image import pyramid
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 15 for calling the PyramidTest obj's underlying member method code with example usage: obj.test_split_merge_random(num_levels) without return types