I found a movie a while ago that I just can not remember the name of.
It was centered around a man in a dystopian destroyed city who was making a robot in his basement. He makes the robot look like him and leaves it locked in the house. There are some scenes where the robot plays classical music on his piano.
The man starts sending the robot out to the grocery store to collect the food, and it saves the woman who works there from a burglar. The man realises that he can pretend to be his robot and get with the girl. He then takes the woman into his house, gets her pregnant and turns the robot off and stashes him in the basement.
This movie may be in a different language too. I remember it looking very drab, brown, and almost war-torn Germany.