“cmd.toggle” toggles the visibility of a representation within a selection.
cmd.toggle(string representation, string selection)
def toggle(representation="", selection=""):
toggle | api