code: def build(self, input_shape):
      super().build(input_shape)
  
      if self._input_format == "x":
          data_shape = input_shape
      elif self._input_format == "xn":
          data_shape, _ = input_shape
      elif self._input_format == "xen":
          data_shape, _, _ = input_shape
          data_shape = data_shape[:2] + (data_shape[2] + 1,)
  
      self._build_transforms(data_shape)
  
      for layer in self._sublayers:
          self._trainable_weights.extend(layer.trainable_weights)
          self._non_trainable_weights.extend(
              layer.non_trainable_weights
          )
  
imports: import tensorflow.keras
  from qkeras import QActivation, QDense, ternary
label_desc: Use image node_id 4 for calling the GarNet obj's underlying member method code with example usage: obj.build(input_shape) without return types