<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def disconnect_networks(self, action, container_name, networks, **kwargs):
 """ Disconnects a container from a set of networks. :param action: Action configuration. :type action: dockermap.map.runner.ActionConfig :param container_name: Container names or id. :type container_name: unicode | str :param networks: List of network names or ids. :type networks: collections.Iterable[unicode | str] :param kwargs: Additional keyword arguments. :type kwargs: dict """

        client = action.client
        for n_name in networks:
            disconnect_kwargs = self.get_network_disconnect_kwargs(action, n_name, container_name, kwargs=kwargs)
            client.disconnect_container_from_network(**disconnect_kwargs)