code: def test_output(self):
      seed = 2390
  
      # Always scale up, but randomly between 0 ~ 255
      layer = layers.RandomBrightness([0, 1.0])
      np.random.seed(seed)
      inputs = np.random.randint(0, 255, size=(224, 224, 3))
      output = backend.convert_to_numpy(layer(inputs))
      diff = output - inputs
      diff = backend.convert_to_numpy(diff)
      self.assertTrue(np.amin(diff) >= 0)
      self.assertTrue(np.mean(diff) > 0)
  
      # Always scale down, but randomly between 0 ~ 255
      layer = layers.RandomBrightness([-1.0, 0.0])
      np.random.seed(seed)
      inputs = np.random.randint(0, 255, size=(224, 224, 3))
      output = backend.convert_to_numpy(layer(inputs))
      diff = output - inputs
      self.assertTrue(np.amax(diff) <= 0)
      self.assertTrue(np.mean(diff) < 0)
  
file_path: keras/keras/layers/preprocessing/random_brightness_test.py
imports: import numpy
  import pytest
  from tensorflow import data
  from keras import backend
  from keras import layers
  from keras import testing
label_desc: Use image node_id 3 for calling the RandomBrightnessTest obj's underlying member method code with example usage: obj.test_output() without return types