code: def _handle_list(filters, previous_key):
      if previous_key in LEGACY_LOGICAL_OPERATORS_MAPPING:
          return [_internal_convert(f) for f in filters]
      elif previous_key not in LEGACY_COMPARISON_OPERATORS_MAPPING:
          return {
              "field": previous_key,
              "operator": "in",
              "value": filters,
          }
      return None
  
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 17 for calling a global function with example usage: _handle_list(filters, previous_key) and returns: None, unknown, dict