<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate_serializer(serializer, _type):
 """ Validates the serializer for given type. :param serializer: (Serializer), the serializer to be validated. :param _type: (Type), type to be used for serializer validation. """

    if not issubclass(serializer, _type):
        raise ValueError("Serializer should be an instance of {}".format(_type.__name__))