def METHOD_NAME(tableName):
    tables = getConfig().targetTables
    filtered = filter(lambda el: el.name == tableName, tables)
    filtered = list(filtered)
    assert len(filtered) == 1
    return filtered[0].maxAllowedUseOnQuery