code: def validate_locale(locale):
      if locale not in SUPPORTED_LOCALES:
          raise ValueError(
              f"Unsupported locale '{locale}'. "
              f"Supported locales {SUPPORTED_LOCALES}"
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: validate_locale(locale) without return types