code: def get_object_name(obj):
      if hasattr(obj, "name"):  # Most Keras objects.
          return obj.name
      elif hasattr(obj, "__name__"):  # Function.
          return to_snake_case(obj.__name__)
      elif hasattr(obj, "__class__"):  # Class instance.
          return to_snake_case(obj.__class__.__name__)
      return to_snake_case(str(obj))
  
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 6 for calling a global function with example usage: get_object_name(obj) and returns: to_snake_case, obj, to_snake_case, to_snake_case