parameters: (enum_type_name)
return_statement: return enum_inverse_dic
docstring: Create a dictionary that maps enum values to the unqualified names of the enum elements.
  
      For example, if the enum type is 'mongo::sbe::vm::Builtin' with an element 'regexMatch', the
      dictionary will contain 'regexMatch' value and not 'mongo::sbe::vm::Builtin::regexMatch'.
docstring_summary: Create a dictionary that maps enum values to the unqualified names of the enum elements.
docstring_tokens: Create a dictionary that maps enum values to the unqualified names of the enum elements .
function: def make_inverse_enum_dict(enum_type_name):
      """
      Create a dictionary that maps enum values to the unqualified names of the enum elements.
  
      For example, if the enum type is 'mongo::sbe::vm::Builtin' with an element 'regexMatch', the
      dictionary will contain 'regexMatch' value and not 'mongo::sbe::vm::Builtin::regexMatch'.
      """
      enum_dict = gdb.types.make_enum_dict(gdb.lookup_type(enum_type_name))
      enum_inverse_dic = dict()
      for key, value in enum_dict.items():
          enum_inverse_dic[int(value)] = key.split('::')[-1]  # take last element
      return enum_inverse_dic
function_tokens: def make_inverse_enum_dict ( enum_type_name ) : enum_dict = gdb . types . make_enum_dict ( gdb . lookup_type ( enum_type_name ) ) enum_inverse_dic = dict ( ) for key , value in enum_dict . items ( ) : enum_inverse_dic [ int ( value ) ] = key . split ( '::' ) [ - 1 ] # take last element return enum_inverse_dic