code: def _coo_gen_triples(A):
      """Converts a SciPy sparse array in **Coordinate** format to an iterable
      of weighted edge triples.
  
      """
      return (
          (int(i), int(j), d) for i, j, d in zip(A.row, A.col, A.data)
      )
  
file_path: networkx/networkx/convert_matrix.py
imports: import itertools
  from collections import defaultdict
  import networkx
  from networkx.utils import not_implemented_for
label_desc: Use image node_id 8 for calling a global function with example usage: _coo_gen_triples(A) and returns: unknown