code: def test_create_trial() -> None:
      base_storage = RDBStorage("sqlite:///:memory:")
      storage = _CachedStorage(base_storage)
      study_id = storage.create_new_study(
          directions=[StudyDirection.MINIMIZE], study_name="test-study"
      )
      frozen_trial = optuna.trial.FrozenTrial(
          number=1,
          state=TrialState.RUNNING,
          value=None,
          datetime_start=None,
          datetime_complete=None,
          params={},
          distributions={},
          user_attrs={},
          system_attrs={},
          intermediate_values={},
          trial_id=1,
      )
      with patch.object(
          base_storage, "_create_new_trial", return_value=frozen_trial
      ):
          storage.create_new_trial(study_id)
      storage.create_new_trial(study_id)
  
file_path: optuna/tests/storages_tests/test_cached_storage.py
imports: from unittest.mock import patch
  import pytest
  import optuna
  from optuna.storages._cached_storage import _CachedStorage
  from optuna.storages._rdb.storage import RDBStorage
  from optuna.study import StudyDirection
  from optuna.trial import TrialState
label_desc: Use image node_id 1 for calling a global function with example usage: test_create_trial() without return types