code: def _plot_point_collection(
      ax,
      geoms,
      values=None,
      color=None,
      cmap=None,
      vmin=None,
      vmax=None,
      marker="o",
      markersize=None,
      **kwargs,
  ):
      """
      Plots a collection of Point and MultiPoint geometries to `ax`
  
      Parameters
      ----------
      ax : matplotlib.axes.Axes
          where shapes will be plotted
      geoms : sequence of `N` Points or MultiPoints
  
      values : a sequence of `N` values, optional
          Values mapped to colors using vmin, vmax, and cmap.
          Cannot be specified together with `color`.
      markersize : scalar or array-like, optional
          Size of the markers. Note that under the hood ``scatter`` is
          used, so the specified value will be proportional to the
          area of the marker (size in points^2).
  
      Returns
      -------
      collection : matplotlib.collections.Collection that was plotted
      """
      if values is not None and color is not None:
          raise ValueError(
              "Can only specify one of 'values' and 'color' kwargs"
          )
  
      geoms, multiindex = _sanitize_geoms(geoms)
      # values are expanded below as kwargs["c"]
  
      x = [p.x if not p.is_empty else None for p in geoms]
      y = [p.y if not p.is_empty else None for p in geoms]
  
      # matplotlib 1.4 does not support c=None, and < 2.0 does not support s=None
      if values is not None:
          kwargs["c"] = values
      if markersize is not None:
          kwargs["s"] = markersize
  
      # Add to kwargs for easier checking below.
      if color is not None:
          kwargs["color"] = color
      if marker is not None:
          kwargs["marker"] = marker
      _expand_kwargs(kwargs, multiindex)
  
      if "norm" not in kwargs:
          collection = ax.scatter(
              x, y, vmin=vmin, vmax=vmax, cmap=cmap, **kwargs
          )
      else:
          collection = ax.scatter(x, y, cmap=cmap, **kwargs)
  
      return collection
  
imports: import warnings
  import numpy
  import pandas
  from pandas.plotting import PlotAccessor
  from pandas import CategoricalDtype
  import geopandas
  from packaging.version import Version
  from ._decorator import doc
label_desc: Use image node_id 7 for calling a global function with example usage: _plot_point_collection(ax, geoms, values, color, cmap, vmin, vmax, marker, markersize) and returns: collection