code: def find_space_fragments(string):
      """Locate and name all hyperparameter choice declaration fragments in `string`
  
      Parameters
      ----------
      string: String
          A string assumed to be the source code of a Keras model-building function, in which
          hyperparameter choice declaration strings may be found
  
      Returns
      -------
      clipped_choices: List
          All hyperparameter choice declaration strings found in `string` - in order of appearance
      names: List
          The names of all hyperparameter choice declarations in `string` - in order of appearance
      start_indexes: List
          The indexes at which each hyperparameter choice declaration string was found in `string` -
          in order of appearance
  
      Examples
      --------
      >>> find_space_fragments("foo")
      ([], [], [])"""
      try:
          unclipped_choices, start_indexes = zip(
              *iter_fragments(string, is_match=is_space_match)
          )
      except ValueError:
          return [], [], []
      clipped_choices = []
      names = []
  
      for choice in unclipped_choices:
          name = re.findall(
              r"(\w+(?=\s*[=(]\s*" + re.escape(choice) + r"))", string
          )
          # FLAG: Might need to prepend name with "_" to prevent possible duplicate extra params
          names.append(name[0] if (len(name) > 0) else names[-1])
          clipped_choices.append(clean_parenthesized_string(choice))
  
      #################### Fix Duplicated Names ####################
      for i in list(range(len(names)))[::-1]:
          duplicates = [_ for _ in names[0:i] if _ == names[i]]
          names[i] += (
              "_{}".format(len(duplicates))
              if len(duplicates) > 0
              else ""
          )
  
      return clipped_choices, names, list(start_indexes)
  
imports: from hyperparameter_hunter.settings import G, TEMP_MODULES_DOT_PATH, TEMP_MODULES_DIR_PATH
  from hyperparameter_hunter.compat.keras_helper import parameterize_compiled_keras_model
  from hyperparameter_hunter.space.dimensions import Real, Integer, Categorical
  from hyperparameter_hunter.utils.boltons_utils import remap, default_enter
  from hyperparameter_hunter.utils.general_utils import deep_restricted_update, subdict
  from hyperparameter_hunter.utils.parsing_utils import stringify_model_builder, write_python, build_temp_model_file
  from collections import OrderedDict
  from copy import deepcopy
  from datetime import datetime
  from importlib.util import spec_from_file_location, module_from_spec
  import os
  import re
  import sys
  from types import FunctionType, MethodType
label_desc: Use image node_id 8 for calling a global function with example usage: find_space_fragments(string) and returns: clipped_choices,  names,  list, list,  list,  list