code: def is_classmethod(meth):
      
      if inspect.ismethoddescriptor(meth):
          return isinstance(meth, classmethod)
      if not inspect.ismethod(meth):
          return False
      if not inspect.isclass(meth.__self__):
          return False
      if not hasattr(meth.__self__, meth.__name__):
          return False
      return meth == getattr(meth.__self__, meth.__name__)
docs: Detects if the given callable is a classmethod.