code: def testGetFunctionDef(self):
      @def_function.function
      def f():
          return constant_op.constant(1.0)
  
      concrete = f.get_concrete_function()
      function_def = context.get_function_def(concrete.name)
  
      self.assertIsNot(function_def, None)
  
      found_const_node = False
      for node_def in function_def.node_def:
          if node_def.op == "Const":
              found_const_node = True
              break
      self.assertTrue(found_const_node)
  
      with self.assertRaises(errors.NotFoundError):
          _ = context.get_function_def("this_should_not_be_found")
  
imports: import weakref
  from absl.testing import parameterized
  import numpy
  from xla.service import hlo_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 5 for calling the ContextTest obj's underlying member method code with example usage: obj.testGetFunctionDef() and returns: constant_op