def METHOD_NAME(self, event, data):
    return "{source} {dirind} {data}␍␤".format(
        source=event.step.source,
        dirind="<" if event.step.title == "read" else ">",
        data=data,
    )