code: def _check_valid_sets_of_keys(dicts):
      """Checks that all dictionaries have exactly the same valid key sets."""
      prev_keys = None
      for dict_ in dicts:
          current_keys = _defined_keys(dict_)
          _check_valid_keys(current_keys)
          if prev_keys and current_keys != prev_keys:
              raise ValueError(
                  "Different set of keys found when iterating over data dictionaries "
                  "({} vs {})".format(prev_keys, current_keys)
              )
          prev_keys = current_keys
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from graph_nets import graphs
  import networkx
  import numpy
  from six.moves import range
  from six.moves import zip
label_desc: Use image node_id 3 for calling a global function with example usage: _check_valid_sets_of_keys(dicts) without return types