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)
Fields in `none_fields` will be cleared out.
graph_nets/tests/utils_np_test.py