class_docstr: Corpus is fundamental resource of NLP
      
docstr: TODO: implement this
  Ref: Flair
  
  :param percentage:
  :param downsample_train:
  :param downsample_dev:
  :param downsample_test:
  :return:
docstr_tok: ["TODO",":","implement","this","Ref",":","Flair",":","param","percentage",":",":","param","downsample_train",":",":","param","downsample_dev",":",":","param","downsample_test",":",":","return",":"]
code: def downsample(
      self,
      percentage: float = 0.1,
      downsample_train=True,
      downsample_dev=True,
      downsample_test=True,
  ):
      """TODO: implement this
      Ref: Flair
  
      :param percentage:
      :param downsample_train:
      :param downsample_dev:
      :param downsample_test:
      :return:
      """
      if downsample_train:
          self._train = self._downsample_to_proportion(
              self.train, percentage
          )
  
      if downsample_dev:
          self._dev = self._downsample_to_proportion(
              self.dev, percentage
          )
  
      if downsample_test:
          self._test = self._downsample_to_proportion(
              self.test, percentage
          )
  
      return self
  
file_path: underthesea/underthesea/corpus/corpus.py
label_desc: Use image node_id 7 for calling the Corpus obj's underlying member method code with example usage: obj.downsample(percentage, downsample_train, downsample_dev, downsample_test) and returns: self