code: def test_local_definition_and_binary_compare(self):
      def test_function():
          def foo(a, b):
              return 2 * a < b
  
          return foo
  
      def expected_result():
          def foo(a, b):
              tmp_1001 = 2 * a
              tmp_1002 = tmp_1001 < b
              return tmp_1002
  
          return foo
  
      self.assert_body_anfs_as_expected(expected_result, test_function)
  
imports: import textwrap
  import gast
  from tensorflow.python.autograph.pyct import loader
  from tensorflow.python.autograph.pyct import parser
  from tensorflow.python.autograph.pyct import transformer
  from tensorflow.python.autograph.pyct.common_transformers import anf
  from tensorflow.python.platform import test
label_desc: Use image node_id 9 for calling the AnfTransformerTest obj's underlying member method code with example usage: obj.test_local_definition_and_binary_compare() and returns: foo, foo, unknown, tmp_1002