def _endpoint_base(cls):
     # Ex. `UserContextResource._endpoint_base()` --> 'api.user_context'
     return "api.{}".format(su.camel_to_snake(cls.resource_name()))
def _make_enum_item_name(value, prefix=''):
    """Create a Python-safe name for an `EnumItem`.
    :param value: The value representing the `EnumItem` name.
    :return: A capitalized, snake-cased string with non-alphanumeric characters removed.
    """
    return prefix + su.camel_to_snake(re.sub(r'\W+', '', str(value))).upper()