class_docstr: Clipboard that synchronizes with the Windows/Mac/Linux system clipboard,
  using the pyperclip module.
code: def get_data(self) -> ClipboardData:
      text = pyperclip.paste()
  
      # When the clipboard data is equal to what we copied last time, reuse
      # the `ClipboardData` instance. That way we're sure to keep the same
      # `SelectionType`.
      if self._data and self._data.text == text:
          return self._data
  
      # Pyperclip returned something else. Create a new `ClipboardData`
      # instance.
      else:
          return ClipboardData(
              text=text,
              type=SelectionType.LINES
              if "\n" in text
              else SelectionType.CHARACTERS,
          )
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/clipboard/pyperclip.py
imports: from __future__ import annotations
  import pyperclip
  from prompt_toolkit.selection import SelectionType
  from .base import Clipboard, ClipboardData
label_desc: Use image node_id 3 for calling the PyperclipClipboard obj's underlying member method code with example usage: obj.get_data() and returns: self, ClipboardData