Write a function to check if all values are same in a dictionary.
def check_value(dict, n):
    result = all(x == n for x in dict.values()) 
    return result
<s>[INST]<<SYS>>Given a task and its code, generate test cases for the code.<</SYS>>Write a function to check if all values are same in a dictionary.
def check_value(dict, n):
    result = all(x == n for x in dict.values()) 
    return result[/INST]assert check_value({'Cierra Vega': 12, 'Alden Cantrell': 12, 'Kierra Gentry': 12, 'Pierre Cox': 12},10)==False
assert check_value({'Cierra Vega': 12, 'Alden Cantrell': 12, 'Kierra Gentry': 12, 'Pierre Cox': 12},12)==True
assert check_value({'Cierra Vega': 12, 'Alden Cantrell': 12, 'Kierra Gentry': 12, 'Pierre Cox': 12},5)==False</s>