def METHOD_NAME(duthosts, enum_rand_one_per_hwsku_frontend_hostname, command):
    duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname]
    wait(30, 'Wait for DUT to receive/send some packets')
    before_portstat = parse_portstat(duthost.command('portstat')['stdout_lines'])
    pytest_assert(before_portstat, 'No parsed command output')
    duthost.command(command)
    wait(1, 'Wait for portstat counters to refresh')
    after_portstat = parse_portstat(duthost.command('portstat')['stdout_lines'])
    pytest_assert(after_portstat, 'No parsed command output')
    """
    Assert only when rx/tx count is no smaller than COUNT_THRES because DUT may send or receive
    some packets during test after port status are clear
    """
    COUNT_THRES = 10
    for intf in before_portstat:
        tmp_ok_cnt = before_portstat[intf]['rx_ok'].replace(',', '')
        rx_ok_before = int(0 if tmp_ok_cnt == 'N/A' else tmp_ok_cnt)
        tmp_ok_cnt = after_portstat[intf]['rx_ok'].replace(',', '')
        rx_ok_after = int(0 if tmp_ok_cnt == 'N/A' else tmp_ok_cnt)
        tmp_ok_cnt = before_portstat[intf]['tx_ok'].replace(',', '')
        tx_ok_before = int(0 if tmp_ok_cnt == 'N/A' else tmp_ok_cnt)
        tmp_ok_cnt = after_portstat[intf]['tx_ok'].replace(',', '')
        tx_ok_after = int(0 if tmp_ok_cnt == 'N/A' else tmp_ok_cnt)
        if int(rx_ok_before >= COUNT_THRES):
            pytest_assert(rx_ok_before >= rx_ok_after,
                          'Value of RX_OK after clear should be lesser')
        if int(tx_ok_before >= COUNT_THRES):
            pytest_assert(tx_ok_before >= tx_ok_after,
                          'Value of TX_OK after clear should be lesser')