code: def _sfn(data, mask, myrad, bcast_var):
      """Score classifier on searchlight data using cross-validation.
  
      The classifier is in `bcast_var[2]`. The labels are in `bast_var[0]`. The
      number of cross-validation folds is in `bast_var[1].
      """
      clf = bcast_var[2]
      masked_data = data[0][mask, :].T
      # print(l[0].shape, mask.shape, data.shape)
      skf = model_selection.StratifiedKFold(
          n_splits=bcast_var[1], shuffle=False
      )
      accuracy = np.mean(
          model_selection.cross_val_score(
              clf, masked_data, y=bcast_var[0], cv=skf, n_jobs=1
          )
      )
      return accuracy
  
file_path: brainiak/brainiak/fcma/mvpa_voxelselector.py
imports: import numpy
  from sklearn import model_selection
  import logging
  from mpi4py import MPI
label_desc: Use image node_id 1 for calling a global function with example usage: _sfn(data, mask, myrad, bcast_var) and returns: accuracy