Auto Tagging by dynamo

Hello, I am new to Dynamo, I would like to ask for help to create Auto Tagging script for doors and window tag but getting stuck