class_docstr: Group of functions related to elasticsearch filters
class_docstr_tok: ["Group","of","functions","related","to","elasticsearch","filters"]
code: def range_filter(
      field: str,
      value_from: Optional[Any] = None,
      value_to: Optional[Any] = None,
  ) -> Optional[Dict[str, Any]]:
      filter_data = {}
      if value_from is not None:
          filter_data["gte"] = value_from
      if value_to is not None:
          filter_data["lte"] = value_to
      if not filter_data:
          return None
      return {"range": {field: filter_data}}
  
imports: from enum import Enum
  from typing import Any, Dict, List, Optional, Type, Union
  from argilla.server.commons.models import TaskStatus
  from argilla.server.daos.backend.mappings.helpers import mappings
  from argilla.server.pydantic_v1 import BaseModel
label_desc: Use image node_id 9 for calling the filters obj's underlying member method code with example usage: obj.range_filter(field, value_from, value_to) and returns: dict, None