<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_ping(self, data: bytes) -> None: """Send ping frame."""

        assert isinstance(data, bytes)
        self._write_frame(True, 0x9, data)