docs: def get_doctypes(self, index, edges=True):
          """
          Returns a list of doctypes given an index
          """
          if index not in self.indices:
              self.get_all_indices()
          return self.indices.get(index, {})