<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rex_assert(self, rex, byte=False):
 """ If `rex` expression is not found then raise `DataNotFound` exception. """


        self.rex_search(rex, byte=byte)