code: def test_grabclipboard(self):
      if sys.platform == "darwin":
          subprocess.call(["screencapture", "-cx"])
      elif sys.platform == "win32":
          p = subprocess.Popen(
              ["powershell", "-command", "-"], stdin=subprocess.PIPE
          )
          p.stdin.write(
              b"""[Reflection.Assembly]::LoadWithPartialName("System.Drawing")
  [Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
  $bmp = New-Object Drawing.Bitmap 200, 200
  [Windows.Forms.Clipboard]::SetImage($bmp)"""
          )
          p.communicate()
      else:
          with pytest.raises(NotImplementedError) as e:
              ImageGrab.grabclipboard()
          assert (
              str(e.value)
              == "ImageGrab.grabclipboard() is macOS and Windows only"
          )
          return
  
      ImageGrab.grabclipboard()
  
file_path: pillow-simd/Tests/test_imagegrab.py
imports: import os
  import subprocess
  import sys
  import pytest
  from PIL import Image, ImageGrab
  from .helper import assert_image_equal_tofile, skip_unless_feature
label_desc: Use image node_id 5 for calling the TestImageGrab obj's underlying member method code with example usage: obj.test_grabclipboard() without return types