code: def test_deprecated_warning(
      sampler_class: Callable[[], BaseMultiObjectiveSampler]
  ) -> None:
      with pytest.warns(FutureWarning):
          sampler_class()
  
file_path: optuna/tests/multi_objective_tests/samplers_tests/test_samplers.py
imports: from typing import Callable
  from unittest.mock import patch
  import numpy
  import pytest
  import optuna
  from optuna import multi_objective
  from optuna.distributions import BaseDistribution
  from optuna.distributions import CategoricalDistribution
  from optuna.distributions import FloatDistribution
  from optuna.distributions import IntDistribution
  from optuna.multi_objective.samplers import BaseMultiObjectiveSampler
label_desc: Use image node_id 3 for calling a global function with example usage: test_deprecated_warning(sampler_class) without return types