code: def create_subsample(data, percent, seed=1):
      
      if percent <= 0 or percent >= 100:
          return data
      data = Instances.copy_instances(data)
      data.randomize(Random(seed))
      data = Instances.copy_instances(data, 0, int(round(data.num_instances * percent / 100.0)))
      return data
docs: Generates a subsample of the dataset.
      :param data: the data to create the subsample from
      :type data: Instances
      :param percent: the percentage (0-100)
      :type percent: float
      :param seed: the seed value to use
      :type seed: int