code: def normalize_enum_constant(s):
      """Return enum constant `s` converted to a canonical snake-case."""
      if s.islower():
          return s
      if s.isupper():
          return s.lower()
      return "".join(
          ch if ch.islower() else "_" + ch.lower() for ch in s
      ).strip("_")
  
imports: from copy import deepcopy
  from functools import partial
  from io import StringIO
  from inspect import getsource
  from pprint import pformat
  import sys
  import bindings
  from custom import get_customizations_for, reformat_block
label_desc: Use image node_id 5 for calling a global function with example usage: normalize_enum_constant(s) and returns: str, s, s