def parsed_top_level_errors(parsed, errors, component_type: str = "<STR_LIT>") -> Errors:
<EOL>fn_cnt = <NUM_LIT:0><EOL>rel_cnt = <NUM_LIT:0><EOL>nested_cnt = <NUM_LIT:0><EOL>for key in parsed:<EOL><INDENT>if parsed[key]["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>fn_cnt += <NUM_LIT:1><EOL><DEDENT>if parsed[key]["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>rel_cnt += <NUM_LIT:1><EOL><DEDENT>if parsed[key]["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>nested_cnt += <NUM_LIT:1><EOL><DEDENT><DEDENT>if not component_type:<EOL><INDENT>if nested_cnt > <NUM_LIT:1>:<EOL><INDENT>errors.append(<EOL>(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>)<EOL>)<EOL><DEDENT>if nested_cnt:<EOL><INDENT>if rel_cnt > <NUM_LIT:2>:<EOL><INDENT>errors.append(<EOL>(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>)<EOL>)<EOL><DEDENT>elif fn_cnt > <NUM_LIT:4>:<EOL><INDENT>errors.append(("<STR_LIT>", "<STR_LIT>"))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if rel_cnt > <NUM_LIT:1>:<EOL><INDENT>errors.append(<EOL>(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>)<EOL>)<EOL><DEDENT>elif fn_cnt > <NUM_LIT:2>:<EOL><INDENT>errors.append(("<STR_LIT>", "<STR_LIT>"))<EOL><DEDENT><DEDENT><DEDENT>elif component_type == "<STR_LIT>":<EOL><INDENT>if rel_cnt > <NUM_LIT:0>:<EOL><INDENT>errors.append(<EOL>("<STR_LIT>", "<STR_LIT>")<EOL>)<EOL><DEDENT>elif fn_cnt > <NUM_LIT:1>:<EOL><INDENT>errors.append(<EOL>("<STR_LIT>", "<STR_LIT>")<EOL>)<EOL><DEDENT><DEDENT>elif component_type == "<STR_LIT:object>":<EOL><INDENT>if nested_cnt:<EOL><INDENT>if rel_cnt > <NUM_LIT:1>:<EOL><INDENT>errors.append(<EOL>(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>)<EOL>)<EOL><DEDENT>elif fn_cnt > <NUM_LIT:2>:<EOL><INDENT>errors.append(<EOL>(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>)<EOL>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if rel_cnt > <NUM_LIT:0>:<EOL><INDENT>errors.append(<EOL>("<STR_LIT>", "<STR_LIT>")<EOL>)<EOL><DEDENT>elif fn_cnt > <NUM_LIT:1>:<EOL><INDENT>errors.append(<EOL>("<STR_LIT>", "<STR_LIT>")<EOL>)<EOL><DEDENT><DEDENT><DEDENT>return errors<EOL>
Check full parse for errors

    Args:
        parsed:
        errors:
        component_type: Empty string or 'subject' or 'object' to indicate that we
            are parsing the subject or object field input