<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_tarfile(name):
 """Return True if name points to a tar archive that we are able to handle, else return False. """

    try:
        t = open(name)
        t.close()
        return True
    except TarError:
        return False