def get_topic_name(self, topic_id):
        # give the cached data a shot, otherwise hit the API again
        for group in self.topic_lookup:
            if topic_id in self.topic_lookup[group]['topic_by_id']:
                return self.topic_lookup[group]['topic_by_id'][topic_id]['name']
        topic = self.get_topic(topic_id)
        # could stick the topic in the cache at this point
        return topic.get('name','(unknown topic)')
dataset/ETHPy150Open ptone/notifyore/notifyore/convore.py/EnhancedConvore.get_topic_name/original