code: def test_order(self):
      # Test that decorators are applied in the proper order to the function
      # they are decorating.
      def callnum(num):
          """Decorator factory that returns a decorator that replaces the
          passed-in function with one that returns the value of 'num'"""
  
          def deco(func):
              return lambda: num
  
          return deco
  
      @callnum(2)
      @callnum(1)
      def foo():
          return 42
  
      self.assertEqual(
          foo(), 2, "Application order of decorators is incorrect"
      )
  
imports: import unittest
  from types import MethodType
label_desc: Use image node_id 12 for calling the TestDecorators obj's underlying member method code with example usage: obj.test_order() and returns: deco, int, function