<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def networks(self):
 """ Available networks. :returns: A list of available networks associated to a provider. """

        if self.provider in ['openstack', 'nephoscale']:
            req = self.request(self.mist_client.uri+'/clouds/'+self.id+'/networks')
            networks = req.get().json()
            return networks
        else:
            print "Network actions not supported yet for %s provider" % self.provider