code: def _has_method(arg, method):
      
      return hasattr(arg, method) and callable(getattr(arg, method))
docs: Returns true if the given object has a method with the given name.
  
      :param arg: the object
  
      :param method: the method name
      :type method: string
  
      :rtype: bool