code: def add_layer(self, name: str, layer_output):
          
          self.__layers[name] = layer_output
          self.__last_layer_name = name
docs: Adds a layer to the network.
          :param name: name of the layer to add
          :param layer_output: output layer.