def read_dtype(mat_stream, a_dtype):
    num_bytes = a_dtype.itemsize
    arr = np.ndarray(shape=(),
                     dtype=a_dtype,
                     buffer=mat_stream.read(num_bytes),
                     order='F')
    return arr
Scans the string and collects parts
dataset/ETHPy150Open scipy/scipy/scipy/io/matlab/miobase.py/read_dtype--crossover with--dataset/ETHPy150Open mailgun/flanker/flanker/mime/message/headers/parametrized.py/collect_parameters