<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, relation=None, index=0, limit=25, **kwargs):
 """ Search track, album, artist or user :returns: a list of :class:`~deezer.resources.Resource` objects. """

        return self.get_object(
            "search", relation=relation, q=query, index=index, limit=limit, **kwargs
        )