<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def selectedOptions(self) -> NodeList: """Return all selected option nodes."""

        return NodeList(list(opt for opt in self.options if opt.selected))