code: def test_run_trial_invoke_tell_with_suppressing_warning(
      storage_mode: str,
  ) -> None:
      def func_numerical(trial: Trial) -> float:
          return trial.suggest_float("v", 0, 10)
  
      with StorageSupplier(storage_mode) as storage:
          study = create_study(storage=storage)
  
          with mock.patch(
              "optuna.study._optimize._tell_with_warning",
              side_effect=_tell_with_warning,
          ) as mock_obj:
              _optimize._run_trial(study, func_numerical, ())
              mock_obj.assert_called_once_with(
                  study=mock.ANY,
                  trial=mock.ANY,
                  value_or_values=mock.ANY,
                  state=mock.ANY,
                  suppress_warning=True,
              )
  
imports: from typing import Callable
  from typing import Generator
  from typing import Optional
  from unittest import mock
  from _pytest.logging import LogCaptureFixture
  import pytest
  from optuna import create_study
  from optuna import logging
  from optuna import Trial
  from optuna import TrialPruned
  from optuna.study import _optimize
  from optuna.study._tell import _tell_with_warning
  from optuna.study._tell import STUDY_TELL_WARNING_KEY
  from optuna.testing.objectives import fail_objective
  from optuna.testing.storages import STORAGE_MODES
  from optuna.testing.storages import StorageSupplier
  from optuna.trial import TrialState
label_desc: Use image node_id 7 for calling a global function with example usage: test_run_trial_invoke_tell_with_suppressing_warning(storage_mode) and returns: trial