code: def _greater_than(document_value: Any, filter_value: Any) -> bool:
      if document_value is None or filter_value is None:
          # We can't compare None values reliably using operators '>', '>=', '<', '<='
          return False
  
      if isinstance(document_value, str) or isinstance(
          filter_value, str
      ):
          try:
              document_value = datetime.fromisoformat(document_value)
              filter_value = datetime.fromisoformat(filter_value)
          except (ValueError, TypeError) as exc:
              msg = (
                  "Can't compare strings using operators '>', '>=', '<', '<='. "
                  "Strings are only comparable if they are ISO formatted dates."
              )
              raise FilterError(msg) from exc
      if type(filter_value) in [list, pd.DataFrame]:
          msg = f"Filter value can't be of type {type(filter_value)} using operators '>', '>=', '<', '<='"
          raise FilterError(msg)
      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 7 for calling a global function with example usage: _greater_than(document_value, filter_value) and returns: unknown, False