code: def _fig_iplot(
      self,
      validate=True,
      sharing=None,
      filename="",
      online=None,
      asImage=False,
      asUrl=False,
      asPlot=False,
      dimensions=None,
      display_image=True,
      **kwargs,
  ):
      """
      Plots a figure in IPython
  
      figure : figure
              Plotly figure to be charted
      validate : bool
              If True then all values are validated before
              it is charted
      sharing : string
              Sets the sharing level permission
                      public - anyone can see this chart
                      private - only you can see this chart
                      secret - only people with the link can see the chart
      filename : string
              Name to be used to save the file in the server, or as an image
      online : bool
              If True then the chart is rendered on the server
              even when running in offline mode.
      asImage : bool
                      If True it returns an Image (png)
                      In ONLINE mode:
                              Image file is saved in the working directory
                                      Accepts:
                                              filename
                                              dimensions
                                              scale
                                              display_image
                      In OFFLINE mode:
                              Image file is downloaded (downloads folder) and a
                              regular plotly chart is displayed in Jupyter
                                      Accepts:
                                              filename
                                              dimensions
      asUrl : bool
              If True the chart url/path is returned. No chart is displayed.
                      If Online : the URL is returned
                      If Offline : the local path is returned
      asPlot : bool
              If True the chart opens in browser
      dimensions : tuple(int,int)
              Dimensions for image
                      (width,height)
      display_image : bool
              If true, then the image is displayed after it has been saved
              Requires Jupyter Notebook
              onlh valide when asImage=True
  
      Other Kwargs
      ============
  
              legend : bool
                      If False then the legend will not be shown
      """
      return iplot(
          self,
          validate=validate,
          sharing=sharing,
          filename=filename,
          online=online,
          asImage=asImage,
          asUrl=asUrl,
          asPlot=asPlot,
          dimensions=dimensions,
          display_image=display_image,
          **kwargs,
      )
  
imports: import pandas
  import time
  import copy
  import numpy
  from plotly.graph_objs import Figure, Layout, Bar, Box, Scatter, FigureWidget, Scatter3d, Histogram, Heatmap, Surface, Pie
  import plotly.figure_factory
  from collections import defaultdict
  from IPython.display import display, Image
  from .exceptions import CufflinksError
  from .colors import normalize, get_scales, colorgen, to_rgba, get_colorscale
  from .utils import check_kwargs, deep_update, kwargs_from_keyword, is_list
  from .None import tools
  from .None import offline
  from .None import auth
  from .None import ta
label_desc: Use image node_id 13 for calling a global function with example usage: _fig_iplot(validate, sharing, filename, online, asImage, asUrl, asPlot, dimensions, display_image) and returns: iplot