code: def test_with_margin_experimental_warning() -> None:
      with pytest.warns(optuna.exceptions.ExperimentalWarning):
          optuna.samplers.CmaEsSampler(with_margin=True)
  
imports: import math
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Optional
  from unittest.mock import MagicMock
  from unittest.mock import Mock
  from unittest.mock import patch
  import warnings
  import _pytest.capture
  from cmaes import CMA
  from cmaes import CMAwM
  from cmaes import SepCMA
  import numpy
  import pytest
  import optuna
  from optuna import create_trial
  from optuna._transform import _SearchSpaceTransform
  from optuna.testing.storages import StorageSupplier
  from optuna.trial import FrozenTrial
  from optuna.trial import TrialState
label_desc: Use image node_id 2 for calling a global function with example usage: test_with_margin_experimental_warning() without return types