code: def create_weighted(self, G):
      g = cycle_graph(4)
      e = list(g.edges())
      source = [u for u, v in e]
      dest = [v for u, v in e]
      weight = [s + 10 for s in source]
      ex = zip(source, dest, weight)
      G.add_weighted_edges_from(ex)
      return G
  
imports: import pytest
  import networkx
  from networkx.generators.classic import barbell_graph, cycle_graph, path_graph
  from networkx.utils import graphs_equal
label_desc: Use image node_id 3 for calling the TestConvertScipy obj's underlying member method code with example usage: obj.create_weighted(G) and returns: G