code: def delete_selection(self):
      if self.selection[0] != self.selection[1]:
          selection = list(self.selection)
          selection.sort()
          del self.__tokens[selection[0] : selection[1]]
          self.move_cursor_pos(selection[0])
          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 9 for calling the MetadataControl obj's underlying member method code with example usage: obj.delete_selection() without return types