code: def test_dbscan_fit_score(self):
      y = self.create_data()
      ad = DBScanDetector(eps=0.1, min_samples=6)
      ad.fit(y)
      anomaly_scores = ad.score()
      assert len(anomaly_scores) == len(y)
      anomaly_indexes = ad.anomaly_indexes()
      # directly use dbscan may cause high local false positive/negatives
      # so the detected anomalies is probably more than the actual ones
      assert len(anomaly_indexes) >= 4
  
file_path: BigDL/python/chronos/test/bigdl/chronos/detector/anomaly/test_dbscan_detector.py
imports: import pytest
  import numpy
  from unittest import TestCase
  from bigdl.chronos.detector.anomaly.dbscan_detector import DBScanDetector
  from ...None import op_torch, op_tf2
label_desc: Use image node_id 4 for calling the TestDBScanDetector obj's underlying member method code with example usage: obj.test_dbscan_fit_score() without return types