code: def test_hddm_a():
      hddm_a = drift.binary.HDDM_A()
      expected_indices = [1047]
      detected_indices = perform_test(hddm_a, data_stream_2)
      assert detected_indices == expected_indices
  
      # Second test, more abrupt drifts
      hddm_a = drift.binary.HDDM_A(two_sided_test=True)
      expected_indices = [531, 1015, 1545]
      detected_indices = perform_test(hddm_a, 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 4 for calling a global function with example usage: test_hddm_a() without return types