code: def test_wrapping_attributes(self):
      @singledispatch
      def g(obj):
          "Simple test"
          return "Test"
  
      self.assertEqual(g.__name__, "g")
      if sys.flags.optimize < 2:
          self.assertEqual(g.__doc__, "Simple test")
  
imports: from __future__ import absolute_import
  import sys
  import doctest
  import unittest
  import decimal
  import inspect
  import functools
  import collections
  from collections import defaultdict
  from decorator import dispatch_on, contextmanager, decorator
label_desc: Use image node_id 5 for calling the TestSingleDispatch obj's underlying member method code with example usage: obj.test_wrapping_attributes() and returns: str