def type2enum(type_name):
enum_name = type_name[:-<NUM_LIT:1>]<EOL>enum_name = enum_name + type_name[-<NUM_LIT:1>].upper()<EOL>return enum_name<EOL>
Transform a real :program:`CySparse` type into the equivalent :program:`CySparse` enum type.

For instance:

    INT32_t -> INT32_T

Args:
    cysparse_type: