class_docstr: A line-based string reader.
  
      
class_docstr_tok: ["A","line-based","string","reader","."]
code: def read_to_condition(self, condition_func):
      start = self._l
      for line in self[start:]:
          if condition_func(line):
              return self[start : self._l]
          self._l += 1
          if self.eof():
              return self[start : self._l + 1]
      return []
  
imports: import inspect
  import textwrap
  import re
  import pydoc
  from warnings import warn
label_desc: Use image node_id 7 for calling the Reader obj's underlying member method code with example usage: obj.read_to_condition(condition_func) and returns: list, self, self