<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_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