code: def test_inconsistent_none_fields_raise_error_on_creation(
      self, none_fields
  ):
      for none_field in none_fields:
          self.graph[none_field] = None
      with self.assertRaisesRegexp(ValueError, none_fields[-1]):
          graphs.GraphsTuple(**self.graph)
  
file_path: graph_nets/graph_nets/tests/graphs_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  from graph_nets import graphs
  import tensorflow
label_desc: Use image node_id 2 for calling the GraphsTest obj's underlying member method code with example usage: obj.test_inconsistent_none_fields_raise_error_on_creation(none_fields) without return types