code: def get_dimension_indices(self, query):
          
          ids = self['id'] if self.get('id') else self['dimension']['id']
          indices = []
  
          for idx, id in enumerate(ids):
              indices.append(self.get_dimension_index(id,
                                                      [d.get(id) for d in query
                                                       if id in d][0]))
  
          return indices
docs: Converts a dimension/category list of dicts into a list of \
             dimensions’ indices.
          Args:
             query(list): dimension/category list of dicts.
  
          Returns:
             indices(list): list of dimensions' indices.