code: def test_grab_no_xcb(self):
      if sys.platform not in ("win32", "darwin") and not shutil.which(
          "gnome-screenshot"
      ):
          with pytest.raises(OSError) as e:
              ImageGrab.grab()
          assert str(e.value).startswith(
              "Pillow was built without XCB support"
          )
  
      with pytest.raises(OSError) as e:
          ImageGrab.grab(xdisplay="")
      assert str(e.value).startswith(
          "Pillow was built without XCB support"
      )
  
file_path: pillow/Tests/test_imagegrab.py
imports: from __future__ import annotations
  import os
  import shutil
  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 3 for calling the TestImageGrab obj's underlying member method code with example usage: obj.test_grab_no_xcb() without return types