code: def flatten_dict_items(dictionary):
      """Returns a dictionary with flattened keys and values.
  
      This function flattens the keys and values of a dictionary, which can be
      arbitrarily nested structures, and returns the flattened version of such
      structures:
  
      ```python
      example_dictionary = {(4, 5, (6, 8)): ("a", "b", ("c", "d"))}
      result = {4: "a", 5: "b", 6: "c", 8: "d"}
      flatten_dict_items(example_dictionary) == result
      ```
  
      The input dictionary must satisfy two properties:
  
      1. Its keys and values should have the same exact nested structure.
      2. The set of all flattened keys of the dictionary must not contain repeated
         keys.
  
      Args:
        dictionary: the dictionary to zip
  
      Returns:
        The zipped dictionary.
  
      Raises:
        TypeError: If the input is not a dictionary.
        ValueError: If any key and value do not have the same structure layout, or
        if keys are not unique.
      """
      return _pywrap_nest.FlattenDictItems(dictionary)
  
imports: from tensorflow.python.util import _pywrap_nest
  from tensorflow.python.util import _pywrap_utils
  from tensorflow.python.util import nest_util
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 11 for calling a global function with example usage: flatten_dict_items(dictionary) and returns: _pywrap_nest