code: def test_loop_target(self):
      def f():
          a = True
          while True:
              directives.set_loop_options(
                  parallel_iterations=10, back_prop=a
              )  # pylint: disable=unexpected-keyword-arg
              pass
  
      _, node, _ = self.transform(
          f, directives_converter, include_ast=True
      )
  
      d = anno.getanno(node.body[1], anno.Basic.DIRECTIVES)
      d = d[directives.set_loop_options]
      self.assertEqual(d["parallel_iterations"].value, 10)
      self.assertEqual(d["back_prop"].id, "a")
      self.assertNotIn("swap_memory", d)
  
file_path: tensorflow-upstream/tensorflow/python/autograph/converters/directives_test.py
imports: from tensorflow.python.autograph.converters import directives
  from tensorflow.python.autograph.core import converter_testing
  from tensorflow.python.autograph.lang import directives
  from tensorflow.python.autograph.pyct import anno
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the DirectivesTest obj's underlying member method code with example usage: obj.test_loop_target() without return types