code: def get_cv_folds_number(
      input_data: InputData, log: LoggerAdapter
  ) -> Dict[str, Optional[int]]:
      """Cross-validation folds are available from 1 to 10."""
      row_num = input_data.features.shape[0]
      if row_num < 1000:
          cv_folds = None
      elif row_num < 20000:
          cv_folds = 3
      else:
          cv_folds = 5
      log.info(f"number of cv_folds param was set to {cv_folds}")
      return {"cv_folds": cv_folds}
  
imports: from golem.core.log import LoggerAdapter
  from typing import Dict, Optional
  from fedot.api.api_utils.params import ApiParams
  from fedot.core.data.data import InputData
label_desc: Use image node_id 1 for calling a global function with example usage: get_cv_folds_number(input_data, log) and returns: dict