Frage im Vorstellungsgespräch bei Canonical

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