code: def interpolate_point_pair(point_a, point_b, nb_steps):
      """Interpolate ``N`` points on a line segment.
  
      Parameters
      ----------
      point_a : iterable of number
          Start point of the line segment, given as ``(x,y)`` coordinates.
  
      point_b : iterable of number
          End point of the line segment, given as ``(x,y)`` coordinates.
  
      nb_steps : int
          Number of points to interpolate between `point_a` and `point_b`.
  
      Returns
      -------
      list of tuple of number
          The interpolated points.
          Does not include `point_a`.
  
      """
      if nb_steps < 1:
          return []
      x1, y1 = point_a
      x2, y2 = point_b
      vec = np.float32([x2 - x1, y2 - y1])
      step_size = vec / (1 + nb_steps)
      return [
          (x1 + (i + 1) * step_size[0], y1 + (i + 1) * step_size[1])
          for i in sm.xrange(nb_steps)
      ]
  
file_path: imgaug/imgaug/augmentables/utils.py
imports: from __future__ import print_function, division, absolute_import
  import copy
  import numpy
  import six.moves
  import imgaug
label_desc: Use image node_id 8 for calling a global function with example usage: interpolate_point_pair(point_a, point_b, nb_steps) and returns: unknown, list