code: def test_simple_element(self):
      # Build Holoviews Elements
      scatter = Scatter([0, 0])
  
      # Convert to Dash
      components = to_dash(self.app, [scatter])
  
      # Check returned components
      self.assertIsInstance(components, DashComponents)
      self.assertEqual(len(components.graphs), 1)
      self.assertEqual(len(components.kdims), 0)
      self.assertIsInstance(components.store, Store)
      self.assertEqual(len(components.resets), 0)
  
      # Check initial figure
      fig = components.graphs[0].figure
      self.assertEqual(len(fig["data"]), 1)
      self.assertEqual(fig["data"][0]["type"], "scatter")
  
file_path: holoviews/holoviews/tests/plotting/plotly/test_dash.py
imports: import unittest
  from unittest.mock import MagicMock, patch
  from dash._callback_context import CallbackContext
  from holoviews import Bounds, DynamicMap, Scatter
  from holoviews.plotting.plotly.dash import DashComponents, decode_store_data, encode_store_data, to_dash
  from holoviews.streams import BoundsXY, RangeXY, Selection1D
  from .test_plot import TestPlotlyPlot
  import plotly.io
label_desc: Use image node_id 2 for calling the TestHoloViewsDash obj's underlying member method code with example usage: obj.test_simple_element() without return types