code: def test_reverse_stability(self):
      data = [(random.randrange(100), i) for i in range(200)]
      copy1 = data[:]
      copy2 = data[:]
  
      def my_cmp(x, y):
          x0, y0 = x[0], y[0]
          return (x0 > y0) - (x0 < y0)
  
      def my_cmp_reversed(x, y):
          x0, y0 = x[0], y[0]
          return (y0 > x0) - (y0 < x0)
  
      data.sort(key=cmp_to_key(my_cmp), reverse=True)
      copy1.sort(key=cmp_to_key(my_cmp_reversed))
      self.assertEqual(data, copy1)
      copy2.sort(key=lambda x: x[0], reverse=True)
      self.assertEqual(data, copy2)
  
imports: from test import support
  import random
  import unittest
  from functools import cmp_to_key
label_desc: Use image node_id 9 for calling the TestDecorateSortUndecorate obj's underlying member method code with example usage: obj.test_reverse_stability() and returns: unknown, unknown