<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_averages(self):
 """Get the broadcast network averages for that day. Returns a dictionary: key: network name value: sub-dictionary with 'viewers', 'rating', and 'share' as keys """

        networks = [unescape_html(n.string) for n in self.soup.find_all('td', width='77')]
        table = self.soup.find_all('td', style=re.compile('^font'))

        # Each element is a list split as [rating, share]
        rateshares = [r.string.split('/') for r in table[:5] if r.string]
        viewers = [v.string for v in table[5:] if v.string]
        averages = {}

        # Load the averages dict
        for index, network in enumerate(networks):
            viewer = convert_float(unescape_html(viewers[index]))
            rating = convert_float(unescape_html(rateshares[index][0]))
            share = convert_float(unescape_html(rateshares[index][1]))
            averages[network] = {'viewer': viewer, 'rating': rating, 'share': share}

        return averages