code: def get_ilx2superclass(self, clean:bool=True):
          ''' clean: for list of literals only '''
          ilx2superclass = defaultdict(list)
          header = ['Index'] + list(self.fetch_superclasses().columns)
          for row in self.fetch_superclasses().itertuples():
              row = {header[i]:val for i, val in enumerate(row)}
              if clean:
                  superclass = {
                      'tid': row['superclass_tid'],
                      'ilx': row['superclass_ilx'],
                  }
                  ilx2superclass[row['term_ilx']].append(superclass)
              elif not clean:
                  ilx2superclass[row['term_ilx']].append(row)
          return ilx2superclasf get_ilx2superclass(self, clean:bool=True):
          ''' clean: for list of literals only '''
          ilx2superclass = defaultdict(list)
          header = ['Index'] + list(self.fetch_superclasses().columns)
          for row in self.fetch_superclasses().itertuples():
              row = {header[i]:val for i, val in enumerate(row)}
              if clean:
                  superclass = {
                      'tid': row['superclass_tid'],
                      'ilx': row['superclass_ilx'],
                  }
                  ilx2superclass[row['term_ilx']].append(superclass)
              elif not clean:
                  ilx2superclass[row['term_ilx']].append(row)
          return ilx2superclass
docs: clean: for list of literals only