code: def drift_test(self, y, y_pred):
      abs_error = abs(y - y_pred)
      self.drift_detector.update(abs_error)
  
      return self.drift_detector.drift_detected
  
imports: from __future__ import annotations
  import collections
  import functools
  import io
  import math
  import typing
  from river import anomaly, base, drift, linear_model, stats
  from river.tree import split_criterion
  from river.tree import splitter
  from .base import HoeffdingRule
label_desc: Use image node_id 7 for calling the RegRule obj's underlying member method code with example usage: obj.drift_test(y, y_pred) and returns: self