code: def test_time_range_decorator(self):
      with self.assertRaises(RuntimeError):
          profiler.time_range()
  
file_path: cupy/tests/cupyx_tests/profiler_tests/test_time_range.py
imports: import unittest
  from unittest import mock
  from cupy import cuda
  from cupyx import profiler
label_desc: Use image node_id 4 for calling the TestTimeRangeNVTXUnavailable obj's underlying member method code with example usage: obj.test_time_range_decorator() without return types