code: def shape_offset_y(self):
          
          min_y = self._start_y
          for drawing_operation in self:
              if hasattr(drawing_operation, 'y'):
                  min_y = min(min_y, drawing_operation.y)
          return min_y
docs: Return y distance of shape origin from local coordinate origin.
  
          The returned integer represents the topmost extent of the freeform
          shape, in local coordinates. Note that the bounding box of the shape
          need not start at the local origin.