def METHOD_NAME(self, value, show_comments, show_choices):
    # Get our serialized representation of value, and return it as a
    # ScalarEvent.
    tag = None
    if value is not None:
        value, tag = self._represent(value)
    return [yaml.ScalarEvent(value=value, anchor=None, tag=tag,
                             implicit=(True, True))]