code: def test_for_iter_range(self):
      def testfunc(n):
          total = 0
          for i in range(n):
              total += i
          return total
  
      opt = _testinternalcapi.get_uop_optimizer()
      with temporary_optimizer(opt):
          total = testfunc(20)
          self.assertEqual(total, 190)
  
      ex = get_first_executor(testfunc)
      self.assertIsNotNone(ex)
      # for i, (opname, oparg) in enumerate(ex):
      #     print(f"{i:4d}: {opname:<20s} {oparg:3d}")
      uops = {opname for opname, _, _ in ex}
      self.assertIn("_GUARD_NOT_EXHAUSTED_RANGE", uops)
  
imports: import contextlib
  import opcode
  import textwrap
  import unittest
  import _testinternalcapi
label_desc: Use image node_id 10 for calling the TestUops obj's underlying member method code with example usage: obj.test_for_iter_range() and returns: total