(duck)
return hasattr(duck, 'status_code') and hasattr(duck, 'reason')
Returns True if ``duck`` has the attributes of a Requests response
    instance that this module uses, otherwise False.
Returns True if ``duck`` has the attributes of a Requests response
    instance that this module uses, otherwise False.
Returns True if duck has the attributes of a Requests response instance that this module uses otherwise False .
def is_response(duck):
    """
    Returns True if ``duck`` has the attributes of a Requests response
    instance that this module uses, otherwise False.
    """
    return hasattr(duck, 'status_code') and hasattr(duck, 'reason')
def is_response ( duck ) : return hasattr ( duck , 'status_code' ) and hasattr ( duck , 'reason' )