code: def test_linear_pos_le_middle():
      # Arrange
      middle = 0.5
      pos = 0.25
  
      # Act
      ret = GimpGradientFile.linear(middle, pos)
  
      # Assert
      assert ret == 0.25
  
file_path: pillow-simd/Tests/test_file_gimpgradient.py
imports: from PIL import GimpGradientFile, ImagePalette
label_desc: Use image node_id 1 for calling a global function with example usage: test_linear_pos_le_middle() without return types