class_docstr: Group of functions related to elasticsearch filters
class_docstr_tok: ["Group","of","functions","related","to","elasticsearch","filters"]
docstr: Filter records by status
docstr_tok: ["Filter","records","by","status"]
code: def status(
      status: List[TaskStatus] = None,
  ) -> Optional[Dict[str, Any]]:
      """Filter records by status"""
      if not status:
          return None
      return {"terms": {"status": status}}
  
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 5 for calling the filters obj's underlying member method code with example usage: obj.status(status) and returns: dict, None