code: def to_snake_case(name):
      name = re.sub(r"\W+", "", name)
      name = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
      name = re.sub("([a-z])([A-Z])", r"\1_\2", name).lower()
      return name
  
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 3 for calling a global function with example usage: to_snake_case(name) and returns: name