code: def _load_linestring(tokens, string):
      
      if not next(tokens) == '(':
          raise ValueError(INVALID_WKT_FMT % string)
  
      # a list of lists
      # each member list represents a point
      coords = []
      try:
          pt = []
          for t in tokens:
              if t == ')':
                  coords.append(pt)
                  break
              elif t == ',':
                  # it's the end of the point
                  coords.append(pt)
                  pt = []
              else:
                  pt.append(float(t))
      except tokenize.TokenError:
          raise ValueError(INVALID_WKT_FMT % string)
  
      return dict(type='LineString', coordinates=coords)
docs: Has similar inputs and return value to to :func:`_load_point`, except is
      for handling LINESTRING geometry.
  
      :returns:
          A GeoJSON `dict` LineString representation of the WKT ``string``.