code: def test_simple_overloads(self):
      @singledispatch
      def g(obj):
          return "base"
  
      @g.register(int)
      def g_int(i):
          return "integer"
  
      self.assertEqual(g("str"), "base")
      self.assertEqual(g(1), "integer")
      self.assertEqual(g([1, 2, 3]), "base")
  
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 1 for calling the TestSingleDispatch obj's underlying member method code with example usage: obj.test_simple_overloads() and returns: str, str