Apply view template to dependent view

i just realized that Python code of “myViewOnSheet.ViewTemplateId = myViewTemplate.Id” doesn’t work for dependent view, anyone experienced this issue and how to solve it?

OK, i need to find parent view first