<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def open_hover(self, locator, params=None, use_js=False):
 """ Open a hover or popover. :param locator: locator tuple or WebElement instance :param params: (optional) locator parameters :param use_js: use javascript to open hover :return: element hovered """

        element = locator
        if not isinstance(element, WebElement):
            element = self.get_visible_element(locator, params)

        if use_js:
            self._js_hover('mouseover', element)
            return element
        actions = ActionChains(self.driver)
        actions.move_to_element(element).perform()
        actions.reset_actions()
        return element