code: public static List<List<Writable>> sample(int count, JavaRDD<List<Writable>> data) {
          return data.takeSample(false, count);
      }
docs: Randomly sample a set of examples
  
  @param count    Number of samples to generate
  @param data     Data to sample from
  @return         Samples