class_docstr: DEPRECATED.
class_docstr_tok: ["DEPRECATED","."]
code: def __init__(
      self, factor, interpolation="bilinear", seed=None, **kwargs
  ):
      super().__init__(**kwargs)
      self.seed_generator = backend.random.SeedGenerator(seed)
      self.factor = factor
      if isinstance(factor, (tuple, list)):
          self.height_lower = factor[0]
          self.height_upper = factor[1]
      else:
          self.height_lower = -factor
          self.height_upper = factor
  
      if self.height_upper < self.height_lower:
          raise ValueError(
              "`factor` argument cannot have an upper bound lesser than the "
              f"lower bound. Received: factor={factor}"
          )
      if self.height_lower < -1.0 or self.height_upper < -1.0:
          raise ValueError(
              "`factor` argument must have values larger than -1. "
              f"Received: factor={factor}"
          )
      self.interpolation = interpolation
      self.seed = seed
  
imports: from keras import backend
  from keras.api_export import keras_export
  from keras.layers.layer import Layer
  from keras.utils.module_utils import tensorflow
label_desc: Use image node_id 1 to create a new RandomHeight object from inherited base classes: Layer with example: obj = RandomHeight(factor, interpolation, seed)