code: def test_bytes_per_pixel():
      assert bytes_per_pixel("RGB") == 4
      assert bytes_per_pixel("RGBA") == 4
      assert bytes_per_pixel("LA") == 2
      assert bytes_per_pixel("L") == 1
  
file_path: OCRmyPDF/tests/test_imageops.py
imports: from __future__ import annotations
  import hypothesis.strategies
  from hypothesis import given
  from PIL import Image
  from ocrmypdf.imageops import _calculate_downsample, bytes_per_pixel, calculate_downsample, downsample_image
label_desc: Use image node_id 1 for calling a global function with example usage: test_bytes_per_pixel() without return types