input: Write a python function to sort a dictionary by its values.
  assert sort_dict_by_values({'Python': 1, 'is': 2, 'an': 3, 'interpreted': 4, 'high-level': 5, 'programming': 6, 'language': 7, 'for': 8, 'general-purpose': 9, 'programming': 10}) == {'Python': 1, 'is': 2, 'an': 3, 'interpreted': 4, 'high-level': 5, 'programming': 6, 'language': 7, 'for': 8, 'general-purpose': 9, 'programming': 10}
  assert sort_dict_by_values({'b': 3, 'a': 1, 'c': 2}) == {'a': 1, 'c': 2, 'b': 3}
  assert sort_dict_by_values({'apple': 10, 'banana': 5, 'cherry': 20}) == {'banana': 5, 'apple': 10, 'cherry': 20}
output: def sort_dict_by_values(d):
      return dict(sorted(d.items(), key=lambda item: item[1]))