code: def search(query, doc, case_sensitive=False, keys=[], progress=False):
      searcher = Searcher(query)
      return searcher.search(
          doc,
          case_sensitive=case_sensitive,
          keys=keys,
          progress=progress,
      )
  
file_path: ktrain/ktrain/text/shallownlp/searcher.py
imports: from .None import utils
  from .imports import *
label_desc: Use image node_id 1 for calling a global function with example usage: search(query, doc, case_sensitive, keys, progress) and returns: searcher