code: def optional_namestring(self):
          
          opt_names = list(self.optional_names())
          if opt_names:
              return '[, {}]'.format(', '.join(opt_names))
          else:
              return ''
docs: Compose a string showing the optional variables (helper for the
          API printing function)