code: def test_simplify_and_random(
      model0, mutator, max_pool, avg_pool, global_pool
  ):
      model0.mutators = MutatorSequence([mutator])
      assert list(model0.simplify().keys()) == ["debug/0", "debug/1"]
      mutator.sampler = None
      model1 = model0.random()
      assert model1.status == ModelStatus.Frozen
      assert list(model1.sample.keys()) == ["debug/0", "debug/1"]
      assert model1.sample["debug/0"] in [
          max_pool,
          avg_pool,
          global_pool,
      ]
      assert model1.sample["debug/1"] in [
          max_pool,
          avg_pool,
          global_pool,
      ]
  
imports: import json
  from pathlib import Path
  import pytest
  from nni.common.framework import get_default_framework, set_default_framework
  from nni.nas.space import StationaryMutator, Mutator, MutationSampler, GraphModelSpace, ModelStatus, MutatorSequence
  from nni.nas.space.mutator import _RandomSampler
  from nni.nas.space.graph_op import Operation
label_desc: Use image node_id 11 for calling a global function with example usage: test_simplify_and_random(model0, mutator, max_pool, avg_pool, global_pool) without return types