code: def end_comma(self, value):
          
          if not isinstance(value, bool):
              raise TypeError('end_comma attribute must be a logical type.')
          self._end_comma = value
docs: Validate and set the comma termination flag.