@classmethod
def validate_instance(cls, argument_name, argument, expected_type):
    """
        Validate ``argument`` is a instance of ``expected_type``
        """
    if not isinstance(argument, expected_type):
        raise TypeError(cls._ARGUMENT_TYPE_MESSAGE.format(name=
            argument_name, type=expected_type, arg=argument))
