code: def osx_clipboard_get():
      """Get the clipboard's text on OS X."""
      p = subprocess.Popen(
          ["pbpaste", "-Prefer", "ascii"], stdout=subprocess.PIPE
      )
      text, stderr = p.communicate()
      # Text comes in with old Mac \r line endings. Change them to \n.
      text = text.replace(b"\r", b"\n")
      text = py3compat.cast_unicode(text, py3compat.DEFAULT_ENCODING)
      return text
  
file_path: catboost/contrib/python/ipython/py2/IPython/lib/clipboard.py
imports: import subprocess
  from IPython.core.error import TryNext
  import IPython.utils.py3compat
label_desc: Use image node_id 2 for calling a global function with example usage: osx_clipboard_get() and returns: text