def dtype_GDNP(dt):
    """GDAL/NP DataType helper.

    Parses datatype in str or GDAL int.

    Args:
        dt: DataType (as string or INT)

    Returns:
        Tuple with DataType as GDAL integer and string
    """

    dt_dict = {
        1: 'uint8',
        2: 'uint16',
        3: 'int16',
        4: 'uint32',
        5: 'int32',
        6: 'float32',
        7: 'float64',
    }

    dt_tuple = [(k, v) for k, v in dt_dict.items() if dt in (k, v)]
    return dt_tuple[0]