code: def parse_presets_str(presets: str):
      use_hpo = False
      if presets.endswith("_hpo"):
          presets = presets[:-4]
          use_hpo = True
  
      return presets, use_hpo
  
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 2 for calling a global function with example usage: parse_presets_str(presets) and returns: presets,  use_hpo