code: def test_window_size(self, docs):
      data = [tok.text for tok in docs[0]]
      graph_ws2 = network.build_cooccurrence_network(
          data, window_size=2
      )
      graph_ws3 = network.build_cooccurrence_network(
          data, window_size=3
      )
      assert len(graph_ws2) == len(graph_ws3) == len(set(data))
      assert sum(
          data["weight"] for _, _, data in graph_ws2.edges(data=True)
      ) < sum(
          data["weight"] for _, _, data in graph_ws3.edges(data=True)
      )
  
file_path: textacy/tests/representations/test_network.py
imports: from cytoolz import itertoolz
  import pytest
  import textacy
  from textacy.representations import network
label_desc: Use image node_id 3 for calling the TestCooccurrenceNetwork obj's underlying member method code with example usage: obj.test_window_size(docs) without return types