code: def test_graphs_tuple_to_networkxs(self, none_fields):
      if "nodes" in none_fields:
          for graph in self.graphs_dicts_in:
              graph["n_node"] = graph["nodes"].shape[0]
      graphs = utils_np.data_dicts_to_graphs_tuple(self.graphs_dicts_in)
      graphs = graphs.map(lambda _: None, none_fields)
      graph_nxs = utils_np.graphs_tuple_to_networkxs(graphs)
      for data_dict, graph_nx in zip(self.graphs_dicts_out, graph_nxs):
          if "globals" in none_fields:
              self.assertEqual(None, graph_nx.graph["features"])
          else:
              self.assertAllClose(
                  data_dict["globals"], graph_nx.graph["features"]
              )
          nodes_data = graph_nx.nodes(data=True)
          for i, (v, (j, n)) in enumerate(
              zip(data_dict["nodes"], nodes_data)
          ):
              self.assertEqual(i, j)
              if "nodes" in none_fields:
                  self.assertEqual(None, n["features"])
              else:
                  self.assertAllClose(v, n["features"])
          edges_data = sorted(
              graph_nx.edges(data=True), key=lambda x: x[2]["index"]
          )
          for v, (_, _, e) in zip(data_dict["edges"], edges_data):
              if "edges" in none_fields:
                  self.assertEqual(None, e["features"])
              else:
                  self.assertAllClose(v, e["features"])
          for r, s, (i, j, _) in zip(
              data_dict["receivers"], data_dict["senders"], edges_data
          ):
              self.assertEqual(s, i)
              self.assertEqual(r, j)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from absl.testing import parameterized
  from graph_nets import utils_np
  from graph_nets.tests import test_utils
  import networkx
  import numpy
  from six.moves import range
  import tensorflow
label_desc: Use image node_id 7 for calling the NetworkxConversionTest obj's underlying member method code with example usage: obj.test_graphs_tuple_to_networkxs(none_fields) without return types