<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_hosts(self, ip):
 """ Searches for a host using its ipv4 address :param ip: ipv4 address as string :type ip: str :return: dict """

        c = CensysIPv4(api_id=self.__uid, api_secret=self.__api_key)
        return c.view(ip)