code: def _is_linelike(segment):
      maybeline = _alignment_transformation(segment).transformPoints(
          segment
      )
      return all(math.isclose(p[1], 0.0) for p in maybeline)
  
imports: from fontTools.misc.arrayTools import calcBounds, sectRect, rectArea
  from fontTools.misc.transform import Identity
  import math
  from collections import namedtuple
  from math import sqrt, acos, cos, pi
label_desc: Use image node_id 47 for calling a global function with example usage: _is_linelike(segment) and returns: all