def check_name(name):
    if not NAME_REGEX.match(name):
        raise UsageError('Names must match %s, was %s' % (NAME_REGEX.pattern, name))
dataset/ETHPy150Open codalab/codalab-cli/codalab/lib/spec_util.py/check_name/original