code: def test_init_cma_opts() -> None:
      sampler = optuna.integration.PyCmaSampler(
          x0={"x": 0, "y": 0},
          sigma0=0.1,
          cma_stds={"x": 1, "y": 1},
          seed=1,
          cma_opts={"popsize": 5},
      )
      study = optuna.create_study(sampler=sampler)
  
      with patch("optuna.integration.cma._Optimizer") as mock_obj:
          mock_obj.ask.return_value = {"x": -1, "y": -1}
          study.optimize(
              lambda t: t.suggest_int("x", -1, 1)
              + t.suggest_int("y", -1, 1),
              n_trials=2,
          )
          assert mock_obj.mock_calls[0] == call(
              {
                  "x": IntDistribution(low=-1, high=1),
                  "y": IntDistribution(low=-1, high=1),
              },
              {"x": 0, "y": 0},
              0.1,
              {"x": 1, "y": 1},
              {"popsize": 5, "seed": 1, "verbose": -2},
          )
  
imports: import math
  from typing import Any
  from typing import Dict
  from unittest.mock import call
  from unittest.mock import patch
  import warnings
  import _pytest.capture
  import pytest
  import optuna
  from optuna._imports import try_import
  from optuna.distributions import BaseDistribution
  from optuna.distributions import CategoricalDistribution
  from optuna.distributions import FloatDistribution
  from optuna.distributions import IntDistribution
  from optuna.integration.cma import _Optimizer
  from optuna.study._study_direction import StudyDirection
  from optuna.testing.distributions import UnsupportedDistribution
  from optuna.testing.trials import _create_frozen_trial
  from optuna.trial import Trial
  from optuna.trial import TrialState
label_desc: Use image node_id 1 for calling the TestPyCmaSampler obj's underlying member method code with example usage: obj.test_init_cma_opts() without return types