def _print(
        self, *data: object, sep: str = " ", end: str = "\n", file: Any = None
    ) -> None:
        """
        Alternative 'print' function that prints back into the SSH channel.
        """
        # Pop keyword-only arguments. (We cannot use the syntax from the
        # signature. Otherwise, Python2 will give a syntax error message when
        # installing.)
        data_as_str = sep.join(map(str, data))
        self._chan.write(data_as_str + end)

        Alternative 'print' function that prints back into the SSH channel.
        
src/ptpython/contrib/asyncssh_repl.py