def arr_dtype_number(arr, num):
 return np.dtype((arr.dtype.str[:2] + str(num)))

def arr_dtype_number ( arr , num ) : return np . dtype ( ( arr . dtype . str [ : 2 ] + str ( num ) ) )
return dtype for given number of items per element .