code: def test_simple_boundary():
      es = EventSegment(2)
      random_state = np.random.RandomState(0)
  
      sample_data = (
          np.array([[1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 1]])
          + random_state.rand(2, 7) * 10
      )
      es.fit(sample_data.T)
  
      events = np.argmax(es.segments_[0], axis=1)
      assert np.array_equal(
          events, [0, 0, 0, 1, 1, 1, 1]
      ), "Failed to correctly segment two events"
  
      events_predict = es.predict(sample_data.T)
      assert np.array_equal(
          events_predict, [0, 0, 0, 1, 1, 1, 1]
      ), "Error in predict interface"
  
file_path: brainiak/tests/eventseg/test_event.py
imports: from brainiak.eventseg.event import EventSegment
  from scipy.special import comb
  import numpy
  import pytest
  from sklearn.exceptions import NotFittedError
label_desc: Use image node_id 3 for calling a global function with example usage: test_simple_boundary() without return types