code: def location_scatterplot(
      locations=None,
      samples=None,
      ids=None,
      labels=None,
      sizes=None,
      classes=None,
      backend="plotly",
      **kwargs,
  ):
      """Generates an interactive scatterplot of the given location coordinates
      with a map rendered in the background of the plot.
  
      Location data is specified via the ``locations`` parameter.
  
      You can attach plots generated by this method to an App session via its
      :attr:`fiftyone.core.session.Session.plots` attribute, which will
      automatically sync the session's view with the currently selected points in
      the plot. To enable this functionality, you must pass ``samples`` to this
      method.
  
      You can use the ``labels`` parameters to define a coloring for the points,
      and you can use the ``sizes`` parameter to scale the sizes of the points.
  
      Args:
          locations (None): the location data to plot. Can be any of the
              following:
  
              -   None, in which case ``samples`` must have a single
                  :class:`fiftyone.core.labels.GeoLocation` field whose ``point``
                  attribute contains location data
              -   a ``num_locations x 2`` array of ``(longitude, latitude)``
                  coordinates
              -   the name of a :class:`fiftyone.core.labels.GeoLocation` field
                  of ``samples`` with ``(longitude, latitude)`` coordinates in
                  its ``point`` attribute
          samples (None): the :class:`fiftyone.core.collections.SampleCollection`
              whose data is being visualized
          ids (None): an array-like of IDs corresponding to the locations. If not
              provided but ``samples`` are provided, the appropriate IDs will be
              extracted from the samples
          labels (None): data to use to color the points. Can be any of the
              following:
  
              -   the name of a sample field or ``embedded.field.name`` of
                  ``samples`` from which to extract numeric or string values
              -   a :class:`fiftyone.core.expressions.ViewExpression` defining
                  numeric or string values to compute from ``samples`` via
                  :meth:`fiftyone.core.collections.SampleCollection.values`
              -   an array-like of numeric or string values
          sizes (None): data to use to scale the sizes of the points. Can be any
              of the following:
  
              -   the name of a sample field or ``embedded.field.name`` of
                  ``samples`` from which to extract numeric values
              -   a :class:`fiftyone.core.expressions.ViewExpression` defining
                  numeric values to compute from ``samples`` via
                  :meth:`fiftyone.core.collections.SampleCollection.values`
              -   an array-like of numeric values
          classes (None): a list of classes whose points to plot. Only applicable
              when ``labels`` contains strings
          backend ("plotly"): the plotting backend to use. Supported values are
              ``("plotly", "matplotlib")``
          **kwargs: keyword arguments for the backend plotting method:
  
              -   "plotly" backend: :meth:`fiftyone.core.plots.plotly.location_scatterplot`
              -   "matplotlib" backend: :meth:`fiftyone.core.plots.matplotlib.location_scatterplot`
  
      Returns:
          one of the following
  
          -   an :class:`InteractivePlot`, if IDs are available
          -   a :class:`fiftyone.core.plots.plotly.PlotlyNotebookPlot`, if IDs
              are not available but you are working with the plotly backend in a
              Jupyter notebook
          -   a plotly or matplotlib figure, otherwise
      """
      backend = _parse_backend(backend)
  
      if backend == "matplotlib":
          from .matplotlib import (
              location_scatterplot as _location_scatterplot,
          )
      else:
          from .plotly import (
              location_scatterplot as _location_scatterplot,
          )
  
      return _location_scatterplot(
          locations=locations,
          samples=samples,
          ids=ids,
          labels=labels,
          sizes=sizes,
          classes=classes,
          **kwargs,
      )
  
imports: import logging
  import fiftyone.core.context
  import fiftyone.core.labels
  import fiftyone.core.patches
  import fiftyone.core.video
label_desc: Use image node_id 8 for calling a global function with example usage: location_scatterplot(locations, samples, ids, labels, sizes, classes, backend) and returns: _location_scatterplot