code: def __init__(self, n_splits=2, shuffle=False):
      self.n_splits = n_splits
      if self.n_splits > 1:
          self.k_fold = KFold(n_splits=n_splits, shuffle=shuffle)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import argparse
  import sys
  import numpy
  from scipy import misc
  from sklearn.model_selection import KFold
  from scipy import interpolate
  import sklearn
  import cv2
  import math
  import datetime
  import pickle
  from sklearn.decomposition import PCA
  import mxnet
  from mxnet import ndarray
label_desc: Use image node_id 1 to create a new LFold object  with example: obj = LFold(n_splits, shuffle)