input: Write a function to filter items that end with '.jpg'.
  assert filter_jpg(['image.jpg', 'photo.png', 'picture.jpg', 'graphic.bmp']) == ['image.jpg', 'picture.jpg']
  assert filter_jpg(['file1.jpg', 'file2.jpg', 'file3.jpg']) == ['file1.jpg', 'file2.jpg', 'file3.jpg']
  assert filter_jpg(['doc.txt', 'image.jpeg', 'photo.jpg']) == ['photo.jpg']
output: def filter_jpg(items):
      return [item for item in items if item.endswith('.jpg')]