input: Write a python function to sort a dictionary by its values using a lambda function.
  assert sort_dict_by_values({'a': 3, 'b': 1, 'c': 2}) == [('b', 1), ('c', 2), ('a', 3)]
  assert sort_dict_by_values({'apple': 5, 'banana': 2, 'cherry': 7, 'date': 1}) == [('date', 1), ('banana', 2), ('apple', 5), ('cherry', 7)]
  assert sort_dict_by_values({'one': 10, 'two': 0, 'three': 5}) == [('two', 0), ('three', 5), ('one', 10)]
output: def sort_dict_by_values(d):
      return sorted(d.items(), key=lambda item: item[1])