def METHOD_NAME(methods):
    func_defs = "\n".join(
        generate_func_def(m, s, i, d) for i, (m, s, _, d) in enumerate(methods)
    )
    if default_fn_mutability == "":
        default_fn_code = ""
    elif default_fn_mutability in ("@nonpayable", "@payable"):
        default_fn_code = f"""