def METHOD_NAME(self, data):
    country_id = zipcode = False
    zipcode = data.get("codepostaletablissement")
    if isinstance(zipcode, int):
        zipcode = str(zipcode)
    if zipcode:
        zipcode = zipcode.zfill(5)
        country_id = self.env["res.partner"]._opendatasoft_compute_country(zipcode)
    return {
        "name": data.get("denominationunitelegale")
        or data.get("l1_adressage_unitelegale"),
        "street": data.get("adresseetablissement"),
        "zip": zipcode,
        "city": data.get("libellecommuneetablissement"),
        "country_id": country_id,
        "siren": data.get("siren") and str(data["siren"]) or False,
        "siret": data.get("siret") and str(data["siret"]) or False,
        "category": data.get("categorieentreprise"),
        "creation_date": data.get("datecreationunitelegale"),
        "ape": data.get("activiteprincipaleunitelegale"),
        "ape_label": data.get("divisionunitelegale"),
        "legal_type": data.get("naturejuridiqueunitelegale"),
        "staff": data.get("trancheeffectifsunitelegale", 0),
    }