<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def search(self, query, page=0, order=7, category=0, multipage=False):
 """ Searches TPB for query and returns a list of paginated Torrents capable of changing query, categories and orders. """

        search = Search(self.base_url, query, page, order, category)
        if multipage:
            search.multipage()
        return search