<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def optional_names(self):
 """ Get a list of the variables that are defined, but not required """

        for name, var in self.items():
            if var.get('optional', False):
                yield name