code: def image_text_similarity(presets: str = DEFAULT):
      """
      Register the presets for image_text_similarity.
  
      Parameters
      ----------
      presets
          The preset name.
  
      Returns
      -------
      hyperparameters
          The hyperparameters for a given preset.
      hyperparameter_tune_kwargs
          The hyperparameter tuning kwargs.
      """
      hyperparameters = {
          "model.names": ["clip"],
          "matcher.loss.type": "multi_negatives_softmax_loss",
          "optimization.learning_rate": 1e-5,
      }
      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
          )
  
      if presets in [DEFAULT, MEDIUM_QUALITY]:
          hyperparameters.update(
              {
                  "model.clip.checkpoint_name": "openai/clip-vit-base-patch32",
                  "env.per_gpu_batch_size": 128,
              }
          )
      elif presets == HIGH_QUALITY:
          hyperparameters.update(
              {
                  "model.clip.checkpoint_name": "openai/clip-vit-large-patch14",
                  "env.per_gpu_batch_size": 16,
              }
          )
      elif presets == BEST_QUALITY:
          hyperparameters.update(
              {
                  "model.clip.checkpoint_name": "openai/clip-vit-large-patch14-336",
                  "model.clip.image_size": 336,
                  "env.per_gpu_batch_size": 8,
              }
          )
      else:
          raise ValueError(f"Unknown preset type: {presets}")
  
      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 14 for calling a global function with example usage: image_text_similarity(presets) and returns: hyperparameters,  hyperparameter_tune_kwargs