def laplace(func):
    """
    Laplacian of the input Function.

    Parameters
    ----------
    func : Function or TensorFunction
    """
    try:
        return func.laplace
    except AttributeError:
        return 0
