code: def get_and_set_all_categories(self):
      all_categories = []
      for page in self.pages:
          if page.relations.categories_norm is not None:
              all_categories.extend(page.relations.categories_norm)
          if page.relations.categories is not None:
              all_categories.extend(page.relations.categories)
      return set(all_categories)
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/data_types/wiki/wikipedia_pages.py
label_desc: Use image node_id 5 for calling the WikipediaPages obj's underlying member method code with example usage: obj.get_and_set_all_categories() and returns: set