def METHOD_NAME(plugin, item_id, site_id, **kwargs):
    resp = urlquick.get(URL_CATEGORIES % site_id)
    json_parser = json.loads(resp.text)
    for category_datas in json_parser['hydra:member']:
        if category_datas["name"] is not None:
            category_title = category_datas["name"]
            category_reference = category_datas["reference"]
            item = Listitem()
            item.label = category_title
            item.set_callback(
                list_sub_categories,
                item_id=item_id,
                site_id=site_id,
                category_reference=category_reference)
            item_post_treatment(item)
            yield item