Turkey has condemned an activist art installation in Berlin that portrayed Turkish President Recep Tayyip Erdogan was portrayed as a dictator, shortly before he was due to arrive in Germany for the G20 summit.