human
Write a function to find minimum k records from tuple list. https://www.geeksforgeeks.org/python-find-minimum-k-records-from-tuple-list/ - in this case a verbatim copy of test cases Here is a solution in Python:
Write me a Python program to find minimum k records from tuple list?
assistant
#Here is Python program to find minimum k records from tuple list.
 def min_k(test_list, K):
  res = sorted(test_list, key = lambda x: x[1])[:K]
  return (res)