code: def test_ddm():
      expected_indices = [1049]
      detected_indices = perform_test(drift.binary.DDM(), data_stream_2)
      assert detected_indices == expected_indices
  
      expected_indices = []
      detected_indices = perform_test(drift.binary.DDM(), np.ones(1000))
      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 2 for calling a global function with example usage: test_ddm() without return types