code: def check_mutate_can_be_idempotent(model):
      before = model._get_params()
      model.mutate({})
      after = model._get_params()
      assert before == after
  
imports: from __future__ import annotations
  import copy
  import inspect
  import pickle
  import random
  from .utils import assert_predictions_are_close, seed_params
label_desc: Use image node_id 13 for calling a global function with example usage: check_mutate_can_be_idempotent(model) without return types