When English people in the 13th century spoke the word hotel they might be code switching between English and Old French (but that's debatable because it seems this word ultimately has a Latin root)
However this word is part of the English lexicon today and require no knowledge of French, and as such isn't an example of code switching