code: def test_group_decomposed_search_space_with_different_studies() -> (
      None
  ):
      search_space = _GroupDecomposedSearchSpace()
  
      with StorageSupplier("sqlite") as storage:
          study0 = create_study(storage=storage)
          study1 = create_study(storage=storage)
  
          search_space.calculate(study0)
          with pytest.raises(ValueError):
              # `_GroupDecomposedSearchSpace` isn't supposed to be used for multiple studies.
              search_space.calculate(study1)
  
file_path: optuna/tests/search_space_tests/test_group_decomposed.py
imports: import pytest
  from optuna import create_study
  from optuna import TrialPruned
  from optuna.distributions import CategoricalDistribution
  from optuna.distributions import FloatDistribution
  from optuna.distributions import IntDistribution
  from optuna.search_space import _GroupDecomposedSearchSpace
  from optuna.search_space import _SearchSpaceGroup
  from optuna.testing.storages import StorageSupplier
  from optuna.trial import Trial
label_desc: Use image node_id 3 for calling a global function with example usage: test_group_decomposed_search_space_with_different_studies() without return types