code: def get_uid(prefix=""):
      """Associates a string prefix with an integer counter.
  
      Args:
          prefix: String prefix to index.
  
      Returns:
          Unique integer ID.
  
      Example:
  
      >>> get_uid('dense')
      1
      >>> get_uid('dense')
      2
      """
      object_name_uids = global_state.get_global_attribute(
          "object_name_uids",
          default=collections.defaultdict(int),
          set_to_default=True,
      )
      object_name_uids[prefix] += 1
      return object_name_uids[prefix]
  
file_path: keras/keras/utils/naming.py
imports: import collections
  import re
  from keras.api_export import keras_export
  from keras.backend.common import global_state
label_desc: Use image node_id 4 for calling a global function with example usage: get_uid(prefix) and returns: object_name_uids