code: def test_page_hinkley():
      expected_indices = [588, 1681]
      detected_indices = perform_test(
          drift.PageHinkley(mode="up"), data_stream_3
      )
  
      assert detected_indices == expected_indices
  
      expected_indices = [1172]
      detected_indices = perform_test(
          drift.PageHinkley(mode="down"), data_stream_3
      )
  
      assert detected_indices == expected_indices
  
      expected_indices = [588, 1097, 1585]
      detected_indices = perform_test(
          drift.PageHinkley(mode="both"), data_stream_3
      )
  
      assert detected_indices == expected_indices
  
file_path: river/river/drift/test_drift_detectors.py
imports: from __future__ import annotations
  import numpy
  import pytest
  from river import drift
label_desc: Use image node_id 8 for calling a global function with example usage: test_page_hinkley() without return types