def METHOD_NAME(args):
    """
    Schema:
    model_data["model"]["backend"][#nodes] = result
    where "result" can be a list of results, or "error"
    """
    model_data = defaultdict(lambda: defaultdict(lambda: defaultdict(lambda: defaultdict(list))))
    rank_id = 0
    log_path = os.path.join(args.results_dir, f"{args.job_id}_{rank_id}_log.out")
    with open(log_path, "r") as f:
        content = f.read()
        pieces = content.split("<RESULT>")
        pieces = [x.split("</RESULT>") for x in pieces]
        pieces = [x[0] for x in pieces if len(x) == 2]
        pieces = [json.loads(x) for x in pieces]
        for row in pieces:
            model = row["model_name"]
            backend = row["backend"]
            nodes = row["nodes"]
            has_breaks = str(row["has_breaks"] if "has_breaks" in row else "False")
            if isinstance(row["result"], dict):
                latency = float(row["result"]["latency_median"])
                if isinstance(model_data[model][backend][nodes][has_breaks], list):
                    model_data[model][backend][nodes][has_breaks].append(latency)
            else:
                model_data[model][backend][nodes][has_breaks] = "error"
    return model_data