Pregunta de entrevista de Canonical

Write a function in Python to check if an input string is a valid ISBN.