def METHOD_NAME(job_id):
    job = base.get_resource_orm(
        models2.Job,
        job_id,
        options=[
            sa_orm.joinedload("topic", innerjoin=True),
            sa_orm.joinedload("remoteci", innerjoin=True),
            sa_orm.selectinload("components"),
            sa_orm.selectinload("results"),
        ],
    )
    job_serialized = job.serialize()
    results_with_testcases = []
    for result in job_serialized["results"]:
        file = base.get_resource_orm(models2.File, result["file_id"])
        file_descriptor = files.get_file_descriptor(file)
        jsonunit = transformations.junit2dict(file_descriptor)
        result_with_testcases = result.copy()
        result_with_testcases["testcases"] = jsonunit["testscases"]
        results_with_testcases.append(result_with_testcases)
    job_serialized["results"] = results_with_testcases
    return job_serialized