def METHOD_NAME(cls, ctx, op):
    df = ctx[op.inputs[0].key]
    func_name = getattr(cls, "_func_name")
    if hasattr(df, func_name):
        ctx[op.outputs[0].key] = getattr(df, func_name)(decimals=op.decimals)
    else:
        ctx[op.outputs[0].key] = getattr(np, func_name)(df, decimals=op.decimals)