def ping():

    if not salt.utils.is_proxy():
        return True
    else:
        ping_cmd = __opts__['proxy']['proxytype'] + '.ping'
        if __opts__.get('add_proxymodule_to_opts', False):
            return __opts__['proxymodule'][ping_cmd]()
        else:
            return __proxy__[ping_cmd]()
Callback function for sending mail.
dataset/ETHPy150Open saltstack/salt/salt/modules/test.py/ping--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/large_mapreduce_test.py/LargeMapreduceTest._send_mail