code: def _check_stc(stc1, stc2):
      """Check that stcs are compatible."""
      if stc1.data.shape != stc2.data.shape:
          raise ValueError("Data in stcs must have the same size")
      if np.all(stc1.times != stc2.times):
          raise ValueError("Times of two stcs must match.")
  
imports: from functools import partial
  import numpy
  from scipy.spatial.distance import cdist
  from ...utils import _check_option, _validate_type, fill_doc
label_desc: Use image node_id 1 for calling a global function with example usage: _check_stc(stc1, stc2) without return types