<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def node_has_edge_with_label(self, node_name, edge_label):
 """Looks for an edge from node_name to some other node with the specified label. Returns the node to which this edge points if it exists, or None if it doesn't. Parameters G : The graph object node_name : Node that the edge starts at edge_label : The text in the relation property of the edge """

        G = self.G
        for edge in G.edges(node_name):
            to = edge[1]

            relation_name = G.edges[node_name, to]['relation']
            if relation_name == edge_label:
                return to
        return None