code: def test_load_study() -> None:
      with StorageSupplier("sqlite") as storage:
          study_name = str(uuid.uuid4())
  
          with pytest.raises(KeyError):
              # Test loading an unexisting study.
              optuna.multi_objective.study.load_study(
                  study_name=study_name, storage=storage
              )
  
          # Create a new study.
          created_study = optuna.multi_objective.study.create_study(
              ["minimize"], study_name=study_name, storage=storage
          )
  
          # Test loading an existing study.
          loaded_study = optuna.multi_objective.study.load_study(
              study_name=study_name, storage=storage
          )
          assert (
              created_study._study._study_id
              == loaded_study._study._study_id
          )
  
file_path: optuna/tests/multi_objective_tests/test_study.py
imports: from typing import List
  from typing import Tuple
  import uuid
  import _pytest.capture
  import pytest
  import optuna
  from optuna.study._study_direction import StudyDirection
  from optuna.testing.storages import StorageSupplier
label_desc: Use image node_id 2 for calling a global function with example usage: test_load_study() without return types