code: def test_entities():
      assert sorted(DOC_1.ents) == sorted([("Google", "ORG")])
      assert sorted(DOC_2.ents) == sorted([("Philips", "ORG")])
      assert DOC_3.ents == []
  
imports: import re
  from unittest import mock
  import pytest
  import spacy
  import numpy
  from fakeredis import FakeRedis
  from textpipe.doc import Doc, TextpipeMissingModelException, RedisIDFWeightingMismatchException
  from textpipe.wrappers import RedisKeyedVectors
label_desc: Use image node_id 3 for calling a global function with example usage: test_entities() without return types