code: def test_while_loop_preserves_directives(self):
      def f(x):
          while x > 0:
              x -= 1
              if x % 2 == 0:
                  break
  
      _, node, ctx = self.transform(f, (), include_ast=True)
      fake_annotation = object()
      anno.setanno(node.body[0], anno.Basic.DIRECTIVES, fake_annotation)
      node = break_statements.transform(node, ctx)
  
      self.assertIs(
          anno.getanno(node.body[1], anno.Basic.DIRECTIVES),
          fake_annotation,
      )
  
file_path: DALI/dali/test/python/autograph/converters/test_break_statements.py
imports: from nvidia.dali._autograph.converters import break_statements
  from nvidia.dali._autograph.core import converter_testing
  from nvidia.dali._autograph.pyct import anno
label_desc: Use image node_id 3 for calling the BreakCanonicalizationTest obj's underlying member method code with example usage: obj.test_while_loop_preserves_directives() without return types