Calling autorecord runs the training, testing and write to JSON. It automatically completes a set number of trials. variations is an array of the different sample sizes. [[(SampleSize1) [No.