def mult_diag(d, mtx, left=True):
    if left:
        return (d*mtx.T).T
    else:
        return d*mtx
b'@ab' -> '40 41 42'
dataset/ETHPy150Open epierson9/ZIFA/ZIFA/ZIFA.py/mult_diag--crossover with--dataset/ETHPy150Open pyserial/pyserial/serial/tools/hexlify_codec.py/Codec.decode