code: def test_find_space_fragments(
      string, expected_choices, expected_names, expected_indexes
  ):
      assert find_space_fragments(string) == (
          expected_choices,
          expected_names,
          expected_indexes,
      )
  
file_path: hyperparameter_hunter/tests/test_keras_optimization_helper.py
imports: from hyperparameter_hunter.compat.keras_optimization_helper import clean_parenthesized_string, consolidate_layers, find_space_fragments, merge_compile_params, rewrite_model_builder
  from hyperparameter_hunter import Real, Categorical
  from collections import OrderedDict
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_find_space_fragments(string, expected_choices, expected_names, expected_indexes) without return types