code: def test_reseed_rng() -> None:
      sampler = multi_objective.samplers.NSGAIIMultiObjectiveSampler(
          population_size=10
      )
      original_random_state = sampler._rng.rng.get_state()
      original_random_sampler_random_state = (
          sampler._random_sampler._sampler._rng.rng.get_state()
      )
  
      with patch.object(
          sampler._random_sampler,
          "reseed_rng",
          wraps=sampler._random_sampler.reseed_rng,
      ) as mock_object:
          sampler.reseed_rng()
          assert mock_object.call_count == 1
      assert str(original_random_state) != str(
          sampler._rng.rng.get_state()
      )
      assert str(original_random_sampler_random_state) != str(
          sampler._random_sampler._sampler._rng.rng.get_state()
      )
  
file_path: optuna/tests/multi_objective_tests/samplers_tests/test_nsga2.py
imports: from collections import Counter
  from typing import List
  from typing import Tuple
  from unittest.mock import patch
  import pytest
  import optuna
  from optuna import multi_objective
  from optuna.study._study_direction import StudyDirection
label_desc: Use image node_id 8 for calling a global function with example usage: test_reseed_rng() without return types