code: def test_sense2vec_freqs():
      s2v = Sense2Vec(shape=(10, 4))
      vector = numpy.asarray([4, 2, 2, 2], dtype=numpy.float32)
      s2v.add("test1", vector, 123)
      s2v.add("test2", vector, 456)
      assert len(s2v.freqs) == 2
      assert s2v.get_freq("test1") == 123
      assert s2v.get_freq("test2") == 456
      assert s2v.get_freq("test3") is None
      assert s2v.get_freq("test3", 100) == 100
      s2v.set_freq("test3", 200)
      assert s2v.get_freq("test3") == 200
  
file_path: sense2vec/sense2vec/tests/test_sense2vec.py
imports: import pytest
  import numpy
  from sense2vec import Sense2Vec, registry
label_desc: Use image node_id 2 for calling a global function with example usage: test_sense2vec_freqs() without return types