def METHOD_NAME(self, item):
    structure = Structure.from_dict(item["structure"])
    mpid = item[self.materials.key]
    origin_entry = {"name": "absorption", "task_id": item["task_id"]}
    doc = AbsorptionDoc.from_structure(
        structure=structure,
        material_id=mpid,
        task_id=item["task_id"],
        deprecated=False,
        energies=item["energies"],
        real_d=item["real_dielectric"],
        imag_d=item["imag_dielectric"],
        absorption_co=item["optical_absorption_coeff"],
        bandgap=item["bandgap"],
        nkpoints=item["nkpoints"],
        last_updated=item["updated_on"],
        origins=[origin_entry],
    )
    return jsanitize(doc.dict(), allow_bson=True)