def METHOD_NAME(from_node_type, network, config):
    for to_node_type in config:
        if to_node_type in TO_APPLICABLE_NODE_TYPES:
            from_node = get_ssh_host_for_node_type(from_node_type, ["ncn-m001"])
            if not from_node:
                continue
            from_node.get_password() # this will ask for the password and cache it
            collect_passwords_from_node_type_to_node_type_over_network(from_node_type, from_node, to_node_type, network)