code: def test_ae_fit_score_rolled_keras(self):
      y = self.create_data()
      ad = AEDetector(roll_len=314)
      ad.fit(y)
      anomaly_scores = ad.score()
      assert len(anomaly_scores) == len(y)
      anomaly_indexes = ad.anomaly_indexes()
      assert len(anomaly_indexes) == int(ad.ratio * len(y))
  
file_path: BigDL/python/chronos/test/bigdl/chronos/detector/anomaly/test_ae_detector.py
imports: import pytest
  import numpy
  from unittest import TestCase
  from bigdl.chronos.detector.anomaly.ae_detector import AEDetector
  from ...None import op_torch, op_tf2
label_desc: Use image node_id 4 for calling the TestAEDetector obj's underlying member method code with example usage: obj.test_ae_fit_score_rolled_keras() without return types