def METHOD_NAME(
    semester,
    course,
    homework,
    student,
    version,
    testcases,
    active_version
):
    results_path = os.path.join(
        DATA_PATH,
        semester,
        course,
        "results",
        homework,
        student,
        version
    )
    entry = {
        'autograding_non_hidden_non_extra_credit': 0,
        'autograding_non_hidden_extra_credit': 0,
        'autograding_hidden_non_extra_credit': 0,
        'autograding_hidden_extra_credit': 0,
        'submission_time': None,
        'active': False
    }
    if int(version) == active_version:
        entry['active'] = True
    results_json = os.path.join(results_path, "results.json")
    if not os.path.isfile(results_json):
        return False
    with open(results_json) as open_file:
        open_file = json.load(open_file)
        if testcases:
            if len(testcases) != len(open_file['testcases']):
                return False
            for i in range(len(open_file['testcases'])):
                testcase = testcases[i]
                points = float(open_file['testcases'][i]['points_awarded'])
                hidden = "hidden" if testcase['hidden'] else "non_hidden"
                ec = "extra_credit" if testcase['extra_credit'] else "non_extra_credit"
                entry['autograding_' + hidden + "_" + ec] += points
        with open(os.path.join(results_path, "history.json")) as open_file:
            json_file = json.load(open_file)
        if isinstance(json_file, list):
            a = datetime.strptime(
                json_file[-1]['submission_time'],
                "%a %b  %d %H:%M:%S %Z %Y"
            )
            entry['submission_time'] = '{}-{:02d}-{:02d} {:02d}:{:02d}:{:02d}' \
                .format(a.year, a.month, a.day, a.hour, a.minute, a.second)
    return entry