code: def name(self, name):
          
          success = idaapi.set_enum_member_name(self.cid, name)
          if not success:
              raise exceptions.CantRenameEnumMember(
                  "Failed renaming {!r} to {!r}. Does the name exist somewhere else?".format(self.name, name))
docs: Set the member name.
  
          Note that a member name cannot appear in other enums, or generally
          anywhere else in the IDB.