code: def find_selection(text):
      """Search for the selected pattern in the text.
  
      Module-level function to access the singleton SearchDialog
      instance to search using the selected text.  With a text
      selection, perform the search without displaying the dialog.
      Without a selection, use the prior entry as the search phrase
      and don't display the dialog.  If there has been no prior
      search, open the search dialog.
      """
      return _setup(text).find_selection(text)
  
file_path: cpython/Lib/idlelib/search.py
imports: from tkinter import TclError
  from idlelib import searchengine
  from idlelib.searchbase import SearchDialogBase
label_desc: Use image node_id 4 for calling a global function with example usage: find_selection(text) and returns: _setup