def add_function_signature_help(spec_dict: dict) -> dict:
for f in spec_dict["<STR_LIT>"]["<STR_LIT>"]:<EOL><INDENT>for argset_idx, argset in enumerate(spec_dict["<STR_LIT>"]["<STR_LIT>"][f]["<STR_LIT>"]):<EOL><INDENT>args_summary = "<STR_LIT>"<EOL>args_list = []<EOL>arg_idx = <NUM_LIT:0><EOL>for arg_idx, arg in enumerate(<EOL>spec_dict["<STR_LIT>"]["<STR_LIT>"][f]["<STR_LIT>"][argset_idx]["<STR_LIT>"]<EOL>):<EOL><INDENT>if arg["<STR_LIT:type>"] in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>vals = [<EOL>spec_dict["<STR_LIT>"]["<STR_LIT>"].get(<EOL>val, spec_dict["<STR_LIT>"]["<STR_LIT>"].get(val)<EOL>)<EOL>for val in arg["<STR_LIT>"]<EOL>]<EOL>args_summary += "<STR_LIT:|>".join(vals) + "<STR_LIT>"<EOL>arg_idx += <NUM_LIT:1><EOL>if arg.get("<STR_LIT>", False) and arg.get("<STR_LIT>", False) is False:<EOL><INDENT>args_summary += "<STR_LIT:?>"<EOL>text = f'<STR_LIT>'<EOL><DEDENT>elif arg.get("<STR_LIT>", False):<EOL><INDENT>args_summary += "<STR_LIT:*>"<EOL>text = f'<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT><DEDENT>elif arg["<STR_LIT:type>"] in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>args_summary += f'<STR_LIT>'<EOL>if arg.get("<STR_LIT>", False) and arg.get("<STR_LIT>", False) is False:<EOL><INDENT>args_summary += "<STR_LIT:?>"<EOL>if arg["<STR_LIT:type>"] in ["<STR_LIT>"]:<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT>elif arg["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT><DEDENT>elif arg.get("<STR_LIT>", False):<EOL><INDENT>args_summary += "<STR_LIT:*>"<EOL>if arg["<STR_LIT:type>"] in ["<STR_LIT>"]:<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT>elif arg["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if arg["<STR_LIT:type>"] in ["<STR_LIT>"]:<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT>elif arg["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>text = f'<STR_LIT>'<EOL><DEDENT><DEDENT><DEDENT>args_summary += "<STR_LIT:U+002CU+0020>"<EOL>args_list.append(text)<EOL><DEDENT>args_summary = re.sub("<STR_LIT>", "<STR_LIT>", args_summary)<EOL>spec_dict["<STR_LIT>"]["<STR_LIT>"][f]["<STR_LIT>"][argset_idx][<EOL>"<STR_LIT>"<EOL>] = f"<STR_LIT>"<EOL>spec_dict["<STR_LIT>"]["<STR_LIT>"][f]["<STR_LIT>"][argset_idx][<EOL>"<STR_LIT>"<EOL>] = args_list<EOL><DEDENT><DEDENT>return spec_dict<EOL>
Add function signature help

    Simplify the function signatures for presentation to BEL Editor users