code: def ocr_text_recognition(presets: str = DEFAULT):
      """
      Register the presets for ocr_text_recognition.
  
      Parameters
      ----------
      presets
          The preset name.
  
      Returns
      -------
      hyperparameters
          The hyperparameters for a given preset.
      hyperparameter_tune_kwargs
          The hyperparameter tuning kwargs.
      """
      hyperparameters = {
          "model.names": ["mmocr_text_recognition"],
          "model.mmocr_text_recognition.checkpoint_name": "ABINet",
          "env.eval_batch_size_ratio": 1,
          "env.num_gpus": 1,
          "env.precision": 32,
      }
      hyperparameter_tune_kwargs = {}
      presets, use_hpo = parse_presets_str(presets)
      if use_hpo:
          (
              default_tunable_hyperparameters,
              default_hyperparameter_tune_kwargs,
          ) = get_default_hpo_setup()
          hyperparameters.update(default_tunable_hyperparameters)
          hyperparameter_tune_kwargs.update(
              default_hyperparameter_tune_kwargs
          )
  
      return hyperparameters, hyperparameter_tune_kwargs
  
imports: from typing import List, Optional
  from autogluon.common.utils.try_import import try_import_ray
  from .constants import BEST_QUALITY, BINARY, DATA, DEFAULT, ENVIRONMENT, HIGH_QUALITY, MEDIUM_QUALITY, MODEL, MULTICLASS, OPTIMIZATION, REGRESSION
  from .registry import Registry
label_desc: Use image node_id 10 for calling a global function with example usage: ocr_text_recognition(presets) and returns: hyperparameters,  hyperparameter_tune_kwargs