code: def loggable(obj):
      
      if isinstance(obj, logging.Logger):
          return True
      else:
          return (inspect.isclass(obj)
                  and inspect.ismethod(getattr(obj, 'debug', None))
                  and inspect.ismethod(getattr(obj, 'isEnabledFor', None))
                  and inspect.ismethod(getattr(obj, 'setLevel', None)))
docs: Return "True" if the obj implements the minimum Logger API
      required by the 'trace' decorator.