def METHOD_NAME(version):
    """Helper to ensure version is of proper format"""
    if not isinstance(version, string_types) or len(version) != 7:
        raise TypeError('version must be a string of length 7, got {0}'
                        ''.format(version))