<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _has_method(arg, method):
 """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 """

    return hasattr(arg, method) and callable(getattr(arg, method))