def test_entity_to_graph_multiple_lambdas(self):
    (a, b) = (1, 2)
    (f, _) = ((lambda x: (a * x)), (lambda y: (b * y)))
    program_ctx = self._simple_program_ctx()
    (nodes, name, ns) = conversion.entity_to_graph(f, program_ctx, None, None)
    (fn_node, _) = nodes
    self.assertIsInstance(fn_node, gast.Assign)
    self.assertIsInstance(fn_node.value, gast.Lambda)
    self.assertEqual('tf__lambda', name)
    self.assertIs(ns['a'], a)
def test_entity_to_graph_multiple_lambdas(self):
    (a, b) = (1, 2)
    (f, _) = ((lambda x: (a * x)), (lambda y: (b * y)))
    program_ctx = self._simple_program_ctx()
    (nodes, name, ns) = conversion.entity_to_graph(f, program_ctx, None, None)
    (fn_node, _) = nodes
    self.assertIsInstance(fn_node, gast.Assign)
    self.assertIsInstance(fn_node.value, gast.Lambda)
    self.assertEqual('tf__lambda', name)
    self.assertIs(ns['a'], a)