code: def test_loop_target_no_loop(self):
      def f():
          directives.set_loop_options()
          pass
  
      with self.assertRaisesRegex(
          ValueError, "must be used inside a statement"
      ):
          self.transform(f, directives_converter, include_ast=True)
  
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 4 for calling the DirectivesTest obj's underlying member method code with example usage: obj.test_loop_target_no_loop() without return types