code: def _in(document_value: Any, filter_value: Any) -> bool:
      if not isinstance(filter_value, list):
          msg = f"Filter value must be a `list` when using operator 'in' or 'not in', received type '{type(filter_value)}'"
          raise FilterError(msg)
      return any(_equal(e, document_value) for e in 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 11 for calling a global function with example usage: _in(document_value, filter_value) and returns: any