code: def linear(middle, pos):
      if pos <= middle:
          if middle < EPSILON:
              return 0.0
          else:
              return 0.5 * pos / middle
      else:
          pos = pos - middle
          middle = 1.0 - middle
          if middle < EPSILON:
              return 1.0
          else:
              return 0.5 + 0.5 * pos / middle
  
file_path: catboost/contrib/python/Pillow/py2/PIL/GimpGradientFile.py
imports: from math import log, pi, sin, sqrt
  from ._binary import o8
label_desc: Use image node_id 1 for calling a global function with example usage: linear(middle, pos) and returns: int, unknown, int, unknown