human
Write a function to check if all the elements in tuple have same data type or not. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def check_type(test_tuple):
  res = True
  for ele in test_tuple:
    if not isinstance(ele, type(test_tuple[0])):
      res = False
      break
  return (res)