code: def test_reversed(self):
      a = self.type2test(range(20))
      r = reversed(a)
      self.assertEqual(list(r), self.type2test(range(19, -1, -1)))
      self.assertRaises(StopIteration, next, r)
      self.assertEqual(
          list(reversed(self.type2test())), self.type2test()
      )
      # Bug 3689: make sure list-reversed-iterator doesn't have __len__
      self.assertRaises(TypeError, len, reversed([1, 2, 3]))
  
imports: import sys
  from functools import cmp_to_key
  from test import seq_tests
  from test.support import ALWAYS_EQ, NEVER_EQ, Py_C_RECURSION_LIMIT
label_desc: Use image node_id 7 for calling the CommonTest obj's underlying member method code with example usage: obj.test_reversed() without return types