def METHOD_NAME(self, username, password):
    self.report_login()
    form_data = {
        'username': username,
        'password': password,
    }
    payload = urlencode_postdata(form_data)
    request = Request(self._LOGIN_URL, payload)
    request.headers['Content-Type'] = 'application/x-www-form-urlencoded'
    login_page = self._download_webpage(
        request, None, False, 'Wrong login info')
    if not re.search(r'id="tubi-logout"', login_page):
        raise ExtractorError(
            'Login failed (invalid username/password)', expected=True)