Write a function to find the maximum element of all the given tuple records.
def find_max(test_list):
  res = max(int(j) for i in test_list for j in i)
  return (res) 
<s>[INST]<<SYS>>Given a task and its code, generate test cases for the code.<</SYS>>Write a function to find the maximum element of all the given tuple records.
def find_max(test_list):
  res = max(int(j) for i in test_list for j in i)
  return (res) [/INST]assert find_max([(2, 4), (6, 7), (5, 1), (6, 10), (8, 7)]) == 10
assert find_max([(3, 5), (7, 8), (6, 2), (7, 11), (9, 8)]) == 11
assert find_max([(4, 6), (8, 9), (7, 3), (8, 12), (10, 9)]) == 12</s>