<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_available_networks(self, **kwargs):
 """ Retrieves the list of Ethernet networks, Fibre Channel networks and network sets that are available to a server profile template along with their respective ports. The scopeUris, serverHardwareTypeUri and enclosureGroupUri parameters should be specified to get the available networks for a new server profile template. The serverHardwareTypeUri, enclosureGroupUri, and profileTemplateUri should be specified to get available networks for an existing server profile template. The scopeUris parameter is ignored when the profileTemplateUri is specified. Args: enclosureGroupUri: The URI of the enclosure group is required when the serverHardwareTypeUri specifies a blade server. profileTemplateUri: If the URI of the server profile template is provided the list of available networks will include only networks that share a scope with the server profile template. scopeUris: An expression to restrict the resources returned according to the scopes to which they are assigned. serverHardwareTypeUri: If the server hardware type specifies a rack server, the list of available network includes all networks that are applicable for the specified server hardware type. If the server hardware type specifies a blade server, the enclosureGroupUri parameter must be specified, and the list of available networks includes all networks that are applicable for the specified server hardware type and all empty bays within the enclosure group that can support the specified server hardware type. view: The FunctionType (Ethernet or FibreChannel) to filter the list of networks returned. Returns: dict: Dictionary with available networks details. """

        query_string = '&'.join('{}={}'.format(key, value)
                                for key, value in kwargs.items() if value)
        uri = self.URI + "{}?{}".format("/available-networks", query_string)

        return self._helper.do_get(uri)