Get the name of a node when given the node_id

        :param int node_id: The ID of a node
        :param list nodes: list of nodes from :py:meth:`generate_nodes`
        :return: node name
        :rtype: str

def get_node_name_from_id(node_id, nodes):
        """
        Get the name of a node when given the node_id

        :param int node_id: The ID of a node
        :param list nodes: list of nodes from :py:meth:`generate_nodes`
        :return: node name
        :rtype: str
        """
        node_name = ''
        for node in nodes:
            if node['id'] == node_id:
                node_name = node['properties']['name']
                break
        return node_name