code: def search(self, needle, hit_max=16, quads=0):
          
          val = _fitz.TextPage_search(self, needle, hit_max, quads)
  
          if len(val) == 0:
              return val
          nval = []
          for v in val:
              q = Quad(v)
              if not quads:
                  nval.append(q.rect)
              else:
                  nval.append(q)
          val = nval
  
  
          return val
docs: search(self, needle, hit_max=16, quads=0) -> PyObject *