code: def test_in_out_weight(self):
      G = nx.DiGraph()
      G.add_edge(1, 2, weight=1)
      G.add_edge(1, 3, weight=1)
      G.add_edge(3, 1, weight=1)
      for s, t in permutations(["in", "out", "in+out"], 2):
          c = nx.average_degree_connectivity(G, source=s, target=t)
          cw = nx.average_degree_connectivity(
              G, source=s, target=t, weight="weight"
          )
          assert c == cw
  
file_path: networkx/networkx/algorithms/assortativity/tests/test_connectivity.py
imports: from itertools import permutations
  import pytest
  import networkx
label_desc: Use image node_id 6 for calling the TestNeighborConnectivity obj's underlying member method code with example usage: obj.test_in_out_weight() without return types