Write a function to check whether all items of a list are equal to a given string.
def check_element(list,element):
  check_element=all(v== element for v in list)
  return check_element
<s>[INST]<<SYS>>Given a task and its code, generate test cases for the code.<</SYS>>Write a function to check whether all items of a list are equal to a given string.
def check_element(list,element):
  check_element=all(v== element for v in list)
  return check_element[/INST]assert check_element(["green", "orange", "black", "white"],'blue')==False
assert check_element([1,2,3,4],7)==False
assert check_element(["green", "green", "green", "green"],'green')==True</s>