code: def select_value(self, event):
      choice = self.__metadata_choice_ids[event.GetId()]
      index = self.__cursor_pos
      if index < len(self.__tokens) and isinstance(
          self.__tokens[index], self.MetadataToken
      ):
          self.__tokens[index].value = choice
      else:
          token = self.MetadataToken()
          token.value = choice
          self.__tokens.insert(index, token)
      self.on_token_change()
  
imports: import wx
  import wx.lib.masked
  from cellprofiler_core.constants.measurement import C_FRAME
  from cellprofiler_core.constants.measurement import C_METADATA
  from cellprofiler_core.constants.measurement import C_SERIES
  from cellprofiler_core.constants.measurement import IMAGE
  from cellprofiler_core.preferences import get_primary_outline_color
label_desc: Use image node_id 24 for calling the MetadataControl obj's underlying member method code with example usage: obj.select_value(event) without return types