code: def test_attributeruler_tag_map(nlp, tag_map):
      ruler = AttributeRuler(nlp.vocab)
      ruler.load_from_tag_map(tag_map)
      check_tag_map(ruler)
  
imports: import numpy
  import pytest
  from spacy import registry, util
  from spacy.lang.en import English
  from spacy.pipeline import AttributeRuler
  from spacy.tokens import Doc
  from spacy.training import Example
  from ..util import make_tempdir
label_desc: Use image node_id 12 for calling a global function with example usage: test_attributeruler_tag_map(nlp, tag_map) without return types