code: def _clean_mappings(self, mappings: Dict[str, Any]):
      if not mappings:
          return {}
  
      return {
          key: definition.get("type")
          or self._clean_mappings(definition)
          for key, definition in mappings["properties"].items()
      }
  
imports: import logging
  import re
  from enum import Enum
  from typing import Any, Dict, List, Optional, Union
  from argilla.server.daos.backend.query_helpers import filters
  from argilla.server.daos.backend.search.model import BackendDatasetsQuery, BackendQuery, BackendRecordsQuery, BaseDatasetsQuery, QueryRange, SortableField, SortConfig
label_desc: Use image node_id 7 for calling the EsQueryBuilder obj's underlying member method code with example usage: obj._clean_mappings(mappings) and returns: unknown, dict