<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def normalizeInternalObjectType(value, cls, name):
 """ Normalizes an internal object type. * **value** must be a instance of **cls**. * Returned value is the same type as the input value. """

    if not isinstance(value, cls):
        raise TypeError("%s must be a %s instance, not %s."
                        % (name, name, type(value).__name__))
    return value