def _is_pingable(ip):
ping_cmd = ['<STR_LIT>',<EOL>'<STR_LIT:-c>', '<STR_LIT:5>',<EOL>'<STR_LIT>', '<STR_LIT:1>',<EOL>'<STR_LIT>', '<STR_LIT>',<EOL>ip]<EOL>try:<EOL><INDENT>linux_utils.execute(ping_cmd, check_exit_code=True)<EOL>return True<EOL><DEDENT>except RuntimeError:<EOL><INDENT>LOG.warning("<STR_LIT>", ip)<EOL>return False<EOL><DEDENT>
Checks whether an IP address is reachable by pinging.

    Use linux utils to execute the ping (ICMP ECHO) command.
    Sends 5 packets with an interval of 0.2 seconds and timeout of 1
    seconds. Runtime error implies unreachability else IP is pingable.
    :param ip: IP to check
    :return: bool - True or False depending on pingability.