code: def test_loop_target(self):
      def f():
          a = True  # noqa: F841
          while True:
              directives.set_loop_options(parallel_iterations=10)
              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.assertNotIn("swap_memory", d)
  
file_path: DALI/dali/test/python/autograph/converters/test_directives.py
imports: from nvidia.dali._autograph.converters import directives
  from nvidia.dali._autograph.core import converter_testing
  from nvidia.dali._autograph.lang import directives
  from nvidia.dali._autograph.pyct import anno
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