code: def _four_cycles(G):
      cycles = 0
      for v in G:
          for u, w in itertools.combinations(G[v], 2):
              cycles += len((set(G[u]) & set(G[w])) - {v})
      return cycles / 4
  
file_path: networkx/networkx/algorithms/bipartite/cluster.py
imports: import itertools
  import networkx
label_desc: Use image node_id 7 for calling a global function with example usage: _four_cycles(G) and returns: unknown