def test_entity_to_graph_call_tree(self):

    def g(a):
        return a

    def f(a):
        return g(a)
    program_ctx = self._simple_program_ctx()
    (nodes, _, _) = conversion.entity_to_graph(f, program_ctx, None, None)
    f_node = nodes[0]
    self.assertEqual('tf__f', f_node.name)
def test_entity_to_graph_call_tree(self):

    def g(a):
        return a

    def f(a):
        return g(a)
    program_ctx = self._simple_program_ctx()
    (nodes, _, _) = conversion.entity_to_graph(f, program_ctx, None, None)
    f_node = nodes[0]
    self.assertEqual('tf__f', f_node.name)