def class_decode(b):
    """Decode the data type from a byte.

    Parameters:
    b (byte): Byte with the encoded type

    Returns:
    str: Name of the decoded data type

   """

    if b == b'\x00':
        cls = 'float64'
    elif b == b'\x01':
        cls = 'float32'
    elif b == b'\x02':
        cls = 'bool'
    elif b == b'\x03':
        cls = 'str'
    elif b == b'\x04':
        cls = 'int8'
    elif b == b'\x05':
        cls = 'uint8'
    elif b == b'\x08':
        cls = 'int32'
    elif b == b'\x09':
        cls = 'uint32'
    elif b == b'\x0a':
        cls = 'int64'
    elif b == b'\x0b':
        cls = 'uint64'
    elif b == b'\x0c':
        cls = 'dict'
    else:
        raise TypeError('invalid data type')

    return cls