class_docstr: Group of functions related to elasticsearch aggregations requests
class_docstr_tok: ["Group","of","functions","related","to","elasticsearch","aggregations","requests"]
code: def bidimentional_terms_aggregations(
      field_name_x: str,
      field_name_y: str,
      size=DEFAULT_AGGREGATION_SIZE,
  ):
      return {
          **aggregations.terms_aggregation(field_name_x, size=size),
          "meta": {"kind": "2d-terms"},
          "aggs": {
              field_name_y: aggregations.terms_aggregation(
                  field_name_y, size=size
              )
          },
      }
  
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 2 for calling the aggregations obj's underlying member method code with example usage: obj.bidimentional_terms_aggregations(field_name_x, field_name_y, size) and returns: dict