input: Write a python function to sort a dictionary by its values.
  assert sort_dict_by_value({'z': 1, 'b': 2, 'a': 4, 'c': 3}) == [('z', 1), ('b', 2), ('c', 3), ('a', 4)]
  assert sort_dict_by_value({'apple': 10, 'banana': 3, 'cherry': 5}) == [('banana', 3), ('cherry', 5), ('apple', 10)]
  assert sort_dict_by_value({'x': 5, 'y': 5, 'z': 1}) == [('z', 1), ('x', 5), ('y', 5)]
output: def sort_dict_by_value(d):
      return sorted(d.items(), key=lambda item: item[1])