code: def _point_from_flatcoords(coords):
      result = creation.points(coords)
  
      # Older versions of GEOS (<= 3.9) don't automatically convert NaNs
      # to empty points -> do manually
      empties = np.isnan(coords).all(axis=1)
      if empties.any():
          result[empties] = creation.empty(
              1, geom_type=GeometryType.POINT
          ).item()
  
      return result
  
file_path: shapely/shapely/_ragged_array.py
imports: import numpy
  from shapely import creation
  from shapely._geometry import GeometryType, get_coordinate_dimension, get_parts, get_rings, get_type_id
  from shapely.coordinates import get_coordinates
  from shapely.predicates import is_empty
label_desc: Use image node_id 9 for calling a global function with example usage: _point_from_flatcoords(coords) and returns: result