code: def check_has_tag(model, tag):
      assert tag in model._tags
  
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 7 for calling a global function with example usage: check_has_tag(model, tag) without return types