code: def get_entry_categories(self, category_nodes):
          
          categories = []
          for category_node in category_nodes:
              domain = category_node.attrib.get('domain')
              if domain == 'category':
                  categories.append(self.categories[category_node.text])
          return categories
docs: Return a list of entry's categories
          based on imported categories.