class PgFunctionIsVisibleFunction extends Scalar<Boolean, Integer> {

    public static final String NAME = "pg_function_is_visible";

    public static void register(Functions.Builder module) {
        module.add(
            Signature.scalar(
                NAME,
                DataTypes.INTEGER.getTypeSignature(),
                DataTypes.BOOLEAN.getTypeSignature()
            ).withFeature(Feature.NULLABLE),
            PgFunctionIsVisibleFunction::new);
    }


    public PgFunctionIsVisibleFunction(Signature signature, BoundSignature boundSignature) {
        super(signature, boundSignature);
    }

    @Override
    public Boolean evaluate(TransactionContext txnCtx, NodeContext nodeCtx, Input<Integer>... args) {<FILL_FUNCTION_BODY>}
}

        assert args.length == 1 : NAME + " expects exactly 1 argument, got " + args.length;
        Integer oid = args[0].value();
        if (oid == null) {
            return null;
        }
        return nodeCtx.functions().findFunctionSignatureByOid(oid) != null;
    
<methods>public BoundSignature boundSignature() ,public Scalar<java.lang.Boolean,java.lang.Integer> compile(List<io.crate.expression.symbol.Symbol>, java.lang.String, io.crate.role.Roles) ,public transient abstract java.lang.Boolean evaluate(io.crate.metadata.TransactionContext, io.crate.metadata.NodeContext, Input<java.lang.Integer>[]) ,public io.crate.expression.symbol.Symbol normalizeSymbol(io.crate.expression.symbol.Function, io.crate.metadata.TransactionContext, io.crate.metadata.NodeContext) ,public io.crate.metadata.functions.Signature signature() <variables>public static final Set<io.crate.metadata.Scalar.Feature> DETERMINISTIC_AND_COMPARISON_REPLACEMENT,public static final Set<io.crate.metadata.Scalar.Feature> DETERMINISTIC_ONLY,public static final Set<io.crate.metadata.Scalar.Feature> NO_FEATURES,protected final non-sealed BoundSignature boundSignature,protected final non-sealed io.crate.metadata.functions.Signature signature