def METHOD_NAME(self, layer_to_replace: Layer,
                                                layer_a: Layer, layer_b: Layer):
    """
    Replaces original layer with two new layers in the graph.
    Adds two new layers in the database and remove the original layer from database.
    :param layer_to_replace: layer to replace
    :param layer_a: layer a
    :param layer_b: layer b
    """
    # Add the new layer to the database
    self._compressible_layers[id(layer_a.module)] = layer_a
    self._compressible_layers[id(layer_b.module)] = layer_b
    # Remove the layer being replaced from the database
    del self._compressible_layers[id(layer_to_replace.module)]