class_docstr: An abstract class for extracting subset of examples.
class_docstr_tok: ["An","abstract","class","for","extracting","subset","of","examples","."]
docstr: Pick up samples based on scores
  
  :param list scores: list of int
  :param dataset: Dataset
  :return: subset samples
docstr_tok: ["Pick","up","samples","based","on","scores",":","param","list","scores",":","list","of","int",":","param","dataset",":","Dataset",":","return",":","subset","samples"]
code: def get_slice(self, scores, dataset):
      r"""
      Pick up samples based on scores
  
      :param list scores: list of int
      :param dataset: Dataset
      :return: subset samples
  
      """
      indexes = sorted(range(len(scores)), key=lambda x: scores[x])
      sort_samples = [dataset[idx] for idx in indexes]
      left_bound = self.normalize_bound(self.intervals[0], len(dataset))
      right_bound = self.normalize_bound(
          self.intervals[1], len(dataset)
      )
      sub_samples = sort_samples[left_bound:right_bound]
  
      return sub_samples
  
file_path: textflint/textflint/generation/subpopulation/subpopulation.py
imports: import math
  from tqdm import tqdm
  from abc import ABC, abstractmethod
  from ...common.preprocess import EnProcessor
label_desc: Use image node_id 5 for calling the SubPopulation obj's underlying member method code with example usage: obj.get_slice(scores, dataset) and returns: sub_samples