docstr: Not having nodes is fine if providing the number of nodes.
docstr_tok: ["Not","having","nodes","is","fine","if","providing","the","number","of","nodes","."]
code: def test_data_dicts_to_graphs_tuple_infer_n_node(self):
      """Not having nodes is fine if providing the number of nodes."""
      for graph_dict in self.graphs_dicts_in:
          graph_dict["n_node"] = graph_dict["nodes"].shape[0]
          graph_dict["nodes"] = None
      out = utils_np.data_dicts_to_graphs_tuple(self.graphs_dicts_in)
      self.assertAllEqual([0, 1, 1, 1, 2, 2, 2], out.n_node)
  
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 3 for calling the DataDictsConversionTest obj's underlying member method code with example usage: obj.test_data_dicts_to_graphs_tuple_infer_n_node() without return types