code: def plot(data_frame, kind, **kwargs):
      """
      Pandas plotting backend function, not meant to be called directly.
      To activate, set pandas.options.plotting.backend="plotly"
      See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
      """
      from .express import (
          scatter,
          line,
          area,
          bar,
          box,
          histogram,
          violin,
          strip,
          funnel,
          density_contour,
          density_heatmap,
          imshow,
      )
  
      if kind == "scatter":
          new_kwargs = {
              k: kwargs[k] for k in kwargs if k not in ["s", "c"]
          }
          return scatter(data_frame, **new_kwargs)
      if kind == "line":
          return line(data_frame, **kwargs)
      if kind == "area":
          new_kwargs = {
              k: kwargs[k] for k in kwargs if k not in ["stacked"]
          }
          return area(data_frame, **new_kwargs)
      if kind == "bar":
          return bar(data_frame, **kwargs)
      if kind == "barh":
          return bar(data_frame, orientation="h", **kwargs)
      if kind == "box":
          new_kwargs = {k: kwargs[k] for k in kwargs if k not in ["by"]}
          return box(data_frame, **new_kwargs)
      if kind in ["hist", "histogram"]:
          new_kwargs = {
              k: kwargs[k] for k in kwargs if k not in ["by", "bins"]
          }
          return histogram(data_frame, **new_kwargs)
      if kind == "violin":
          return violin(data_frame, **kwargs)
      if kind == "strip":
          return strip(data_frame, **kwargs)
      if kind == "funnel":
          return funnel(data_frame, **kwargs)
      if kind == "density_contour":
          return density_contour(data_frame, **kwargs)
      if kind == "density_heatmap":
          return density_heatmap(data_frame, **kwargs)
      if kind == "imshow":
          return imshow(data_frame, **kwargs)
      if kind == "heatmap":
          raise ValueError(
              "kind='heatmap' not supported plotting.backend='plotly'. "
              "Please use kind='imshow' or kind='density_heatmap'."
          )
  
      raise NotImplementedError(
          "kind='%s' not yet supported for plotting.backend='plotly'"
          % kind
      )
  
imports: import sys
  from typing import TYPE_CHECKING
  from _plotly_utils.importers import relative_import
label_desc: Use image node_id 1 for calling a global function with example usage: plot(data_frame, kind) and returns: scatter, line, area, bar, bar, box, histogram, violin, strip, funnel, density_contour, density_heatmap, imshow