def METHOD_NAME(self, obj):
    if obj["agent_id"] not in self.AGENT_LANGUAGE_MAP:
        agent_model = IastAgent.objects.filter(id=obj["agent_id"]).first()
        if agent_model:
            self.AGENT_LANGUAGE_MAP[obj["agent_id"]] = agent_model.language
    return self.AGENT_LANGUAGE_MAP[obj["agent_id"]]