code: def test_mode_BGR(mode):
      data = [(16, 32, 49), (32, 32, 98)]
      im = Image.new(mode, (1, 2))
      im.putdata(data)
  
      assert list(im.getdata()) == data
  
file_path: pillow/Tests/test_image_putdata.py
imports: from __future__ import annotations
  import sys
  from array import array
  import pytest
  from PIL import Image
  from .helper import assert_image_equal, hopper
label_desc: Use image node_id 7 for calling a global function with example usage: test_mode_BGR(mode) without return types