<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def describe_thing_type(thingTypeName,
    region=None, key=None, keyid=None, profile=None):
    '''
    Given a thing type name describe its properties.

    Returns a dictionary of interesting properties.

    .. versionadded:: 2016.11.0

    CLI Example:

    .. code-block:: bash

        salt myminion boto_iot.describe_thing_type mythingtype

    '''
    try:
        conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
        res = conn.describe_thing_type(thingTypeName=thingTypeName)
        if res:
            res.pop('ResponseMetadata', None)
            thingTypeMetadata = res.get('thingTypeMetadata')
            if thingTypeMetadata:
                for dtype in ('creationDate', 'deprecationDate'):
                    dval = thingTypeMetadata.get(dtype)
                    if dval and isinstance(dval, datetime.date):
                        thingTypeMetadata[dtype] = '{0}'.format(dval)
            return {'thing_type': res}
        else:
            return {'thing_type': None}
    except ClientError as e:
        err = __utils__['boto3.get_error'](e)
        if e.response.get('Error', {}).get('Code') == 'ResourceNotFoundException':
            return {'thing_type': None}
        return {'error': err}