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