def METHOD_NAME(index, get_sequential_processor, processor):
    if(isinstance(index, int)):
        sequential_processor = get_sequential_processor('processor_1')
        if(index < (len(sequential_processor.processors) - 1)):
            raise IndexError('Index out of bounds')
        else:
            sequential_processor.insert(index, processor)
            inserted_processor = sequential_processor.processors[index].name
        assert(processor.name == inserted_processor)
    else:
        raise ValueError('Index is not of type int')