Write a function to convert a list to a tuple.
def list_tuple(listx):
  tuplex = tuple(listx)
  return tuplex
<s>[INST]<<SYS>>Given a task and its code, generate test cases for the code.<</SYS>>Write a function to convert a list to a tuple.
def list_tuple(listx):
  tuplex = tuple(listx)
  return tuplex[/INST]assert list_tuple([5, 10, 7, 4, 15, 3])==(5, 10, 7, 4, 15, 3)
assert list_tuple([2, 4, 5, 6, 2, 3, 4, 4, 7])==(2, 4, 5, 6, 2, 3, 4, 4, 7)
assert list_tuple([58,44,56])==(58,44,56)</s>