@wrap_exceptions
    def get_process_terminal(self):
        tty_nr = _psutil_osx.get_process_tty_nr(self.pid)
        try:
            return _TERMINAL_MAP[tty_nr]
        except __HOLE__:
            return None
dataset/ETHPy150Open packages/psutil/psutil/_psosx.py/Process.get_process_terminal