code: def on_token_change(self):
      event = wx.CommandEvent(
          wx.wxEVT_COMMAND_TEXT_UPDATED, self.GetId()
      )
      self.GetEventHandler().ProcessEvent(event)
      self.show_caret()
      self.SetMinSize(self.DoGetBestSize())
      self.Refresh()
  
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 12 for calling the MetadataControl obj's underlying member method code with example usage: obj.on_token_change() without return types