<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _read_dat(x):
 """read 24bit binary data and convert them to numpy. Parameters x : bytes bytes (length should be divisible by 3) Returns ------- numpy vector vector with the signed 24bit values Notes ----- It's pretty slow but it's pretty a PITA to read 24bit as far as I can tell. """

    n_smp = int(len(x) / DATA_PRECISION)
    dat = zeros(n_smp)

    for i in range(n_smp):
        i0 = i * DATA_PRECISION
        i1 = i0 + DATA_PRECISION
        dat[i] = int.from_bytes(x[i0:i1], byteorder='little', signed=True)

    return dat