def replace_fun(x):
    """
    Replacement function for backward propagation.
    By default, it is an identity function.

    :param x: the input in the forward pass
    :return: the output for the replaced forward layer with this function

    """
    return x