<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, term):
 """ Search for images on Docker Hub. Similar to the ``docker search`` command. Args: term (str):
 A term to search for. Returns: (list of dicts):
 The response of the search. Raises: :py:class:`docker.errors.APIError` If the server returns an error. """

        return self._result(
            self._get(self._url("/images/search"), params={'term': term}),
            True
        )