code: def setup_class(cls):
      cls.func = staticmethod(nx.common_neighbors)
  
      def test_func(G, u, v, expected):
          result = sorted(cls.func(G, u, v))
          assert result == expected
  
      cls.test = staticmethod(test_func)
  
imports: import random
  import pytest
  import networkx
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 1 for calling the TestCommonNeighbors obj's underlying member method code with example usage: obj.setup_class(cls) without return types