code: def test_hddm_w():
      hddm_w = drift.binary.HDDM_W()
      expected_indices = [1018]
      detected_indices = perform_test(hddm_w, data_stream_2)
      assert detected_indices == expected_indices
  
      # Second test, more abrupt drifts
      hddm_w = drift.binary.HDDM_W(two_sided_test=True)
      expected_indices = [507, 1032, 1508]
      detected_indices = perform_test(hddm_w, 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 5 for calling a global function with example usage: test_hddm_w() without return types