def send_command(command, session):
    """Send Netmiko commands"""

    get_response = None
    retries = 0

    while retries != 3:
        try:
            get_response = session.send_command(command)
            break
        except (OSError, TypeError, AttributeError):
            retries += 1

    return get_response