code: def discrete_index(self, indices):
          
          elements = []
          for i in indices:
              elements.append(self[i])
          return elements
docs: get elements by discrete indices
  
          :param indices: list
              discrete indices
          :return: elements