def test_entity_to_graph_lambda_code_with_garbage(self):
    f = ((lambda x: (x + 1)),)[0]
    program_ctx = self._simple_program_ctx()
    (nodes, name, _) = 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)
def test_entity_to_graph_lambda_code_with_garbage(self):
    f = ((lambda x: (x + 1)),)[0]
    program_ctx = self._simple_program_ctx()
    (nodes, name, _) = 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)