def METHOD_NAME(hpid, realm):
    realmid = realm["id"]
    types = get_waste_types(hpid, realmid)
    text = "{ \n"
    text += f'"hpid": {hpid},\n'
    text += f'"realm": {realmid},\n'
    text += f'"name": "{realm["name"]}",\n'
    text += '"icons": {\n'
    for t in types:
      text += f'"{t["id"]}": "", # {t["name"]}\n'
    text += '}, \n'
    text += '}, \n'
    return text