docstr: Fields in `none_fields` will be cleared out.
docstr_tok: ["Fields","in","`","none_fields","`","will","be","cleared","out","."]
code: def test_data_dicts_to_graphs_tuple(self, none_fields):
      """Fields in `none_fields` will be cleared out."""
      for field in none_fields:
          for graph_dict in self.graphs_dicts_in:
              if field in graph_dict:
                  if field == "nodes":
                      graph_dict["n_node"] = graph_dict["nodes"].shape[
                          0
                      ]
                  graph_dict[field] = None
                  self.reference_graph = self.reference_graph._replace(
                      **{field: None}
                  )
              if field == "senders":
                  self.reference_graph = self.reference_graph._replace(
                      n_edge=np.zeros_like(self.reference_graph.n_edge)
                  )
      graphs = utils_np.data_dicts_to_graphs_tuple(self.graphs_dicts_in)
      for field in none_fields:
          self.assertEqual(None, getattr(graphs, field))
      self._assert_graph_equals_np(self.reference_graph, graphs)
  
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 1 for calling the DataDictsConversionTest obj's underlying member method code with example usage: obj.test_data_dicts_to_graphs_tuple(none_fields) without return types