code: def _half_transparent_image():
      # returns an image, half transparent, half solid
      im = hopper("RGB")
  
      transparent = Image.new("L", im.size, 0)
      solid = Image.new("L", (im.size[0] // 2, im.size[1]), 255)
      transparent.paste(solid, (0, 0))
      im.putalpha(transparent)
  
      return im
  
file_path: pillow/Tests/test_imageenhance.py
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImageEnhance
  from .helper import assert_image_equal, hopper
label_desc: Use image node_id 3 for calling a global function with example usage: _half_transparent_image() and returns: im