class_docstr: GrepDialog.__init__ calls parent SearchDiabolBase which attaches the
  passed in SearchEngine instance as attribute 'engine'. Only a few of the
  many possible self.engine.x attributes are needed here.
class_docstr_tok: ["GrepDialog.__init__","calls","parent","SearchDiabolBase","which","attaches","the","passed","in","SearchEngine","instance","as","attribute","'engine","'",".","Only","a","few","of","the","many","possible","self.engine.x","attributes","are","needed","here","."]
code: def getpat(self):
      return self._pat
  
file_path: catboost/contrib/tools/python/src/Lib/idlelib/idle_test/test_grep.py
imports: import unittest
  from test.test_support import captured_stdout, findfile
  from idlelib.idle_test.mock_tk import Var
  from idlelib.GrepDialog import GrepDialog
  import re
label_desc: Use image node_id 1 for calling the Dummy_searchengine obj's underlying member method code with example usage: obj.getpat() and returns: self