code: def get_set(self, fieldname):
          
          set_items = set()
          for ntdata in self.nts:
              set_items |= getattr(ntdata, fieldname)
          return set_items
docs: Get all study items (e.g., geneids).