code: def test_nonstationary_mutator(
      model0, mutator1, max_pool, avg_pool, global_pool
  ):
      model = model0
      for _ in range(10):
          model = mutator1.apply(model)
          pools = _get_pools(model)
          if pools[0] == max_pool:
              assert pools[1] == max_pool
          else:
              assert pools[0] in [avg_pool, global_pool]
              assert pools[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 12 for calling a global function with example usage: test_nonstationary_mutator(model0, mutator1, max_pool, avg_pool, global_pool) without return types