code: def output_shape(self):
      
      if self._output_shape is None:
        self._ensure_is_connected()
      if callable(self._output_shape):
        self._output_shape = tuple(self._output_shape())
      return self._output_shape
docs: Returns the output shape.