code: def test_nwords_nsents():
      assert DOC_1.nwords == 112
      assert DOC_2.nwords == 63
      assert DOC_3.nwords == 0
      assert DOC_1.nsents == 4
      assert DOC_2.nsents == 4
      assert DOC_3.nsents == 0
  
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 2 for calling a global function with example usage: test_nwords_nsents() without return types