docstr: Tests loop from sRGB to linear RGB and back for random inputs.
docstr_tok: ["Tests","loop","from","sRGB","to","linear","RGB","and","back","for","random","inputs","."]
code: def test_cycle_srgb_linear_rgb_srgb_for_random_input(self):
      """Tests loop from sRGB to linear RGB and back for random inputs."""
      tensor_size = np.random.randint(3)
      tensor_shape = np.random.randint(
          1, 10, size=(tensor_size)
      ).tolist()
      srgb_input = np.random.uniform(size=tensor_shape + [3])
      linear_output = linear_rgb.from_srgb(srgb_input)
      srgb_recovered = srgb.from_linear_rgb(linear_output)
  
      self.assertAllClose(srgb_input, srgb_recovered)
  
file_path: graphics/tensorflow_graphics/image/color_space/tests/linear_rgb_test.py
imports: from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  from tensorflow_graphics.image.color_space import linear_rgb
  from tensorflow_graphics.image.color_space import srgb
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 1 for calling the LinearRGBTest obj's underlying member method code with example usage: obj.test_cycle_srgb_linear_rgb_srgb_for_random_input() without return types