code: def iter_fragments(string, is_match=None):
      """Yield fragments of `string` that are of a desired form as dictated by `is_match`
  
      Parameters
      ----------
      string: String
          A string containing fragments, which, when passed to `is_match` return True
      is_match: Callable, or None, default=lambda _: False
          Callable given a single string input that is a fragment of `string`, starting at any index.
          Expected to return boolean, which is truthy when the given fragment is of the desired form
  
      Yields
      ------
      String
          Fragment of `string` starting at an index and continuing to the end, for which `is_match`
          returned a truthy value
      Int
          The index at which the aforementioned string fragment begins
      """
      is_match = is_match or (lambda _: False)
  
      for i in range(len(string)):
          if is_match(string[i:]):
              yield string[i:], i
  
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 10 for calling a global function with example usage: iter_fragments(string, is_match) without return types