code: def _uniform_line(geom, size, generator):
      """
      Sample points from an input shapely linestring
      """
  
      fracs = generator.uniform(size=size)
      return from_shapely(
          geom.interpolate(fracs, normalized=True)
      ).union_all()
  
imports: from warnings import warn
  import numpy
  from shapely.geometry import MultiPoint
  from geopandas.array import from_shapely, points_from_xy
  from geopandas.geoseries import GeoSeries
label_desc: Use image node_id 2 for calling a global function with example usage: _uniform_line(geom, size, generator) and returns: from_shapely