def get_search_spaces(xtype, name) -> List[Text]:
    if ((xtype == 'cell') or (xtype == 'tss')):
        from .cell_operations import SearchSpaceNames
        assert (name in SearchSpaceNames), 'invalid name [{:}] in {:}'.format(name, SearchSpaceNames.keys())
        return SearchSpaceNames[name]
    elif (xtype == 'sss'):
        if ((name == 'nas-bench-301') or (name == 'nats-bench') or (name == 'nats-bench-size')):
            return {'candidates': [8, 16, 24, 32, 40, 48, 56, 64], 'numbers': 5}
        else:
            raise ValueError('Invalid name : {:}'.format(name))
    else:
        raise ValueError('invalid search-space type is {:}'.format(xtype))
def get_search_spaces(xtype, name) -> List[Text]:
    if ((xtype == 'cell') or (xtype == 'tss')):
        from .cell_operations import SearchSpaceNames
        assert (name in SearchSpaceNames), 'invalid name [{:}] in {:}'.format(name, SearchSpaceNames.keys())
        return SearchSpaceNames[name]
    elif (xtype == 'sss'):
        if ((name == 'nas-bench-301') or (name == 'nats-bench') or (name == 'nats-bench-size')):
            return {'candidates': [8, 16, 24, 32, 40, 48, 56, 64], 'numbers': 5}
        else:
            raise ValueError('Invalid name : {:}'.format(name))
    else:
        raise ValueError('invalid search-space type is {:}'.format(xtype))