code: def test_mutator_sequence(model0, mutator, max_pool, avg_pool):
      mutators = MutatorSequence([mutator])
      with pytest.raises(AssertionError, match="bound to a model"):
          mutators.simplify()
      with mutators.bind_model(model0):
          assert list(mutators.simplify().keys()) == [
              "debug/0",
              "debug/1",
          ]
      with mutators.bind_model(model0):
          model1 = mutators.freeze(
              {"debug/0": avg_pool, "debug/1": max_pool}
          )
      assert model1.status == ModelStatus.Mutating
      assert len(model1.history) == 1
      assert _get_pools(model1) == (avg_pool, max_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 10 for calling a global function with example usage: test_mutator_sequence(model0, mutator, max_pool, avg_pool) without return types