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