code: def test_isc_options():
      # Set parameters for toy time series data
      n_subjects = 20
      n_TRs = 60
      n_voxels = 30
      random_state = 42
  
      logger.info("Testing ISC options")
  
      data = simulated_timeseries(
          n_subjects,
          n_TRs,
          n_voxels=n_voxels,
          data_type="array",
          random_state=random_state,
      )
  
      iscs_loo = isc(data, pairwise=False, summary_statistic=None)
      assert iscs_loo.shape == (n_subjects, n_voxels)
  
      # Just two subjects
      iscs_loo = isc(
          data[..., :2], pairwise=False, summary_statistic=None
      )
      assert iscs_loo.shape == (n_voxels,)
  
      iscs_pw = isc(data, pairwise=True, summary_statistic=None)
      assert iscs_pw.shape == (
          n_subjects * (n_subjects - 1) / 2,
          n_voxels,
      )
  
      # Check summary statistics
      isc_mean = isc(data, pairwise=False, summary_statistic="mean")
      assert isc_mean.shape == (n_voxels,)
  
      isc_median = isc(data, pairwise=False, summary_statistic="median")
      assert isc_median.shape == (n_voxels,)
  
      with pytest.raises(ValueError):
          isc(data, pairwise=False, summary_statistic="min")
  
      logger.info("Finished testing ISC options")
  
file_path: brainiak/tests/isc/test_isc.py
imports: import numpy
  import logging
  import pytest
  from brainiak.isc import isc, isfc, bootstrap_isc, permutation_isc, squareform_isfc, timeshift_isc, phaseshift_isc
  from scipy.spatial.distance import squareform
label_desc: Use image node_id 4 for calling a global function with example usage: test_isc_options() without return types