input: Write a python function to sort the dictionary by its values.
  assert sort_dict_by_values({1: 2, 2: 1, 3: 4, 4: 3, 0: 0}) == {0: 0, 2: 1, 1: 2, 4: 3, 3: 4}
  assert sort_dict_by_values({'a': 5, 'b': 3, 'c': 4}) == {'b': 3, 'c': 4, 'a': 5}
  assert sort_dict_by_values({2: 3, 3: 2, 1: 1}) == {1: 1, 3: 2, 2: 3}
output: def sort_dict_by_values(d):
      return dict(sorted(d.items(), key=lambda item: item[1]))