code: def test_igts_get_candidates():
      """Test get_candidates function."""
      candidates = IGTS(step=2).get_candidates(
          n_samples=10, change_points=[0, 4, 6]
      )
      assert candidates == [2, 8]
  
file_path: sktime/sktime/annotation/tests/test_igts.py
imports: import numpy
  import pytest
  from sktime.annotation.igts import IGTS, InformationGainSegmentation, entropy
label_desc: Use image node_id 4 for calling a global function with example usage: test_igts_get_candidates() without return types