How to show a fiducial in only specified views?

I have a vtkMRMLMarkupsFiducialNode and want to show it only a few views, e.g. Red+, Green+ and Yellow+.

How can I do that?

First get the slice nodes of all the views and then set the view node IDs of the display node of the vtkMRMLMarkupsFiducialNode

sliceNodeRed_plus = slicer.app.layoutManager().sliceWidget("Red+").mrmlSliceNode()
sliceNodeGreen_plus = slicer.app.layoutManager().sliceWidget("Green+").mrmlSliceNode()
sliceNodeYellow_plus = slicer.app.layoutManager().sliceWidget("Yellow+").mrmlSliceNode()

my_fiducial_node.GetDisplayNode().SetViewNodeIDs([sliceNodeRed_plus.GetID(), sliceNodeGreen_plus.GetID(), sliceNodeYellow_plus.GetID()])