code: def _compute_num_candidates_from_k(k: int) -> int:
      if k < 50:
          return 500
      elif 50 <= k < 200:
          return 100
      return 2000
  
file_path: argilla/src/argilla/server/search_engine/elasticsearch.py
imports: import dataclasses
  from typing import Any, Dict, List, Optional
  from uuid import UUID
  from elasticsearch8 import AsyncElasticsearch, helpers
  from argilla.server.models import VectorSettings
  from argilla.server.search_engine import SearchEngine
  from argilla.server.search_engine.commons import BaseElasticAndOpenSearchEngine, es_bool_query, es_field_for_vector_settings, es_ids_query
  from argilla.server.settings import settings
label_desc: Use image node_id 1 for calling a global function with example usage: _compute_num_candidates_from_k(k) and returns: int, int, int