code: def check_equal(x_list: list, y_list: list):
      """
      Check if new list of observations (x_list) has any data sample that is equal to any previous data recorded (y_list).
      """
      result = [x for x in x_list if not any(x == y for y in y_list)]
      return result, len(x_list) - len(result)
  
imports: from __future__ import annotations
  import copy
  import functools
  import pandas
  from river import anomaly, utils
  from river.neighbors.base import DistanceFunc
label_desc: Use image node_id 1 for calling a global function with example usage: check_equal(x_list, y_list) and returns: result,  unknown