code: def test_sense2vec_other_senses():
      s2v = Sense2Vec(shape=(6, 4))
      s2v.cfg["senses"] = ["A", "B", "C", "D"]
      for key in ["a|A", "a|B", "a|C", "b|A", "b|C", "c|A"]:
          s2v.add(key, numpy.asarray([4, 2, 2, 2], dtype=numpy.float32))
      others = s2v.get_other_senses("a|A")
      assert sorted(others) == ["a|B", "a|C"]
      others = s2v.get_other_senses("b|C")
      assert others == ["b|A"]
      others = s2v.get_other_senses("B|C")
      assert others == ["b|A"]
      others = s2v.get_other_senses("c|A")
      assert others == []
  
file_path: sense2vec/sense2vec/tests/test_sense2vec.py
imports: import pytest
  import numpy
  from sense2vec import Sense2Vec, registry
label_desc: Use image node_id 3 for calling a global function with example usage: test_sense2vec_other_senses() without return types