code: @Override
      public DataSet sample(int numSamples, boolean withReplacement) {
          return sample(numSamples, Nd4j.getRandom(), withReplacement);
      }
docs: Sample a dataset numSamples times
  
  @param numSamples      the number of samples to getFromOrigin
  @param withReplacement the rng to use
  @return the sampled dataset without replacement