input: Write a Python function to determine whether all elements in a tuple share the same type.  
  assert check_type((5, 6, 7, 3, 5, 6)) == True  
  assert check_type((1, 2, "4")) == False  
  assert check_type((3, 2, 1, 4, 5)) == True
output: def check_type(tup):
      return all(isinstance(x, type(tup[0])) for x in tup)