code: def master_open():
      """master_open() -> (master_fd, slave_name)
      Open a pty master and return the fd, and the filename of the slave end.
      Deprecated, use openpty() instead."""
  
      import warnings
  
      warnings.warn(
          "Use pty.openpty() instead.", DeprecationWarning, stacklevel=2
      )  # Remove API in 3.14
  
      try:
          master_fd, slave_fd = os.openpty()
      except (AttributeError, OSError):
          pass
      else:
          slave_name = os.ttyname(slave_fd)
          os.close(slave_fd)
          return master_fd, slave_name
  
      return _open_terminal()
  
file_path: cpython/Lib/pty.py
imports: from select import select
  import os
  import sys
  import tty
  from os import close, waitpid
  from tty import setraw, tcgetattr, tcsetattr
label_desc: Use image node_id 2 for calling a global function with example usage: master_open() and returns: _open_terminal, master_fd,  slave_name