def arr_dtype_number(arr, num):
    return np.dtype(arr.dtype.str[:2] + str(num))
Return dtype for given number of items per element
dataset/ETHPy150Open scipy/scipy/scipy/io/matlab/miobase.py/arr_dtype_number