Fry the diced bacon and mushrooms in a little oil. Add peeled or fresh tomatoes and pressed garlic. Simmer everything together for about 5 minutes. Then add sour cream and season with salt and black pepper. Add the cooked gnocchi to the sauce and transfer everything to a baking dish. Grate cheese on top and bake at 180°C for about 15 to 20 minutes.