code: def lines(
      x=None,
      y=None,
      samples=None,
      ids=None,
      link_field=None,
      sizes=None,
      backend="plotly",
      **kwargs,
  ):
      """Plots the given lines(s) data.
  
      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 ``sizes`` parameter to scale the sizes of the points.
  
      Args:
          x (None): the x data to plot. Can be any of the following:
  
              -   an array-like of values
              -   a ``num_lines x n`` array-like or list of length ``num_lines``
                  of array-likes of values for multiple line traces
              -   the name of a sample field or ``embedded.field.name`` of
                  ``samples`` from which to extract values for a single line
              -   the name of a frame field or ``frames.embbeded.field.name`` of
                  ``samples`` from which to extract values for per-sample line
                  traces
              -   a :class:`fiftyone.core.expressions.ViewExpression` that
                  resolves to a list (one line plot) or list of lists (muliple
                  line plots) of numeric values to compute from ``samples`` via
                  :meth:`fiftyone.core.collections.SampleCollection.values`
          y (None): the y data to plot. Can be any of the following:
  
              -   an array-like of values
              -   a ``num_lines x n`` array-like or list of length ``num_lines``
                  of array-likes of values for multiple line traces
              -   the name of a sample field or ``embedded.field.name`` of
                  ``samples`` from which to extract values for a single line
              -   the name of a frame field or ``frames.embbeded.field.name`` of
                  ``samples`` from which to extract values for per-sample line
                  traces
              -   a :class:`fiftyone.core.expressions.ViewExpression` that
                  resolves to a list (one line plot) or list of lists (muliple
                  line plots) of numeric values to compute from ``samples`` via
                  :meth:`fiftyone.core.collections.SampleCollection.values`
          samples (None): the :class:`fiftyone.core.collections.SampleCollection`
              whose data is being visualized
          ids (None): an array-like of IDs of same shape as ``y``. If not
              provided but ``samples`` are provided, the appropriate IDs will be
              extracted from the samples
          link_field (None): a field of ``samples`` whose data corresponds to
              ``y``. Can be any of the following:
  
              -   ``None``, if the line data correspond to samples (single trace)
                  or frames (multiple traces)
              -   ``"frames"``, if the line data correspond to frames (multiple
                  traces). This option exists only for consistency with other
                  plotting methods; in practice, it will be automatically
                  inferred whenever multiple traces are being plotted
              -   the name of a :class:`fiftyone.core.labels.Label` field, if the
                  line data correspond to the labels in this field
          sizes (None): data to use to scale the sizes of the points. Can be any
              of the following:
  
              -   an array-like of numeric values of same shape as ``y``
              -   the name of a sample field (single trace) or frame field
                  (multiple traces) from which to extract numeric values
              -   a :class:`fiftyone.core.expressions.ViewExpression` defining
                  sample-level (single trace) or frame-level (multiple traces)
                  numeric values to compute from ``samples`` via
                  :meth:`fiftyone.core.collections.SampleCollection.values`
          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.lines`
              -   "matplotlib" backend: :meth:`fiftyone.core.plots.matplotlib.lines`
  
      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 lines as _lines
      else:
          from .plotly import lines as _lines
  
      return _lines(
          x=x,
          y=y,
          samples=samples,
          ids=ids,
          link_field=link_field,
          sizes=sizes,
          **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 6 for calling a global function with example usage: lines(x, y, samples, ids, link_field, sizes, backend) and returns: _lines