code: def _equal(document_value: Any, filter_value: Any) -> bool:
      if isinstance(document_value, pd.DataFrame):
          document_value = document_value.to_json()
  
      if isinstance(filter_value, pd.DataFrame):
          filter_value = filter_value.to_json()
  
      return document_value == filter_value
  
imports: from typing import List, Any, Union, Dict
  from dataclasses import fields
  from datetime import datetime
  import pandas
  from haystack.dataclasses import Document
  from haystack.errors import FilterError
label_desc: Use image node_id 5 for calling a global function with example usage: _equal(document_value, filter_value) and returns: unknown