code: def G1():
      G = nx.from_numpy_array(G_array, create_using=nx.MultiDiGraph)
      return G
  
imports: import math
  from operator import itemgetter
  import pytest
  import networkx
  from networkx.algorithms.tree import branchings, recognition
label_desc: Use image node_id 1 for calling a global function with example usage: G1() and returns: G