code: def test_complexity():
      assert DOC_1.complexity == 40.05836340206187
      assert DOC_2.complexity == 13.18740740740742
      assert DOC_3.complexity == 100
  
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 4 for calling a global function with example usage: test_complexity() without return types