code: def edit_regexp(parent, regexp, test_text, guesses=None):
      if guesses is None:
          guesses = RE_FILENAME_GUESSES
      frame = RegexpDialog(
          parent, style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
      )
      frame.SetMinSize((300, 200))
      frame.SetSize((600, 200))
      frame.value = regexp
      frame.test_text = test_text
      frame.guesses = guesses
      if frame.ShowModal():
          return frame.value
      return None
  
imports: import re
  import wx
  import wx.stc
label_desc: Use image node_id 1 for calling a global function with example usage: edit_regexp(parent, regexp, test_text, guesses) and returns: None, frame