code: def test_basic_lineplot_pyspark(spark):
      """Test for basic lineplot with Pyspark"""
  
      # Create basic lineplot:
      np.random.seed(42)
      df = pd.DataFrame(
          {
              "Google": np.random.randn(1000) + 0.2,
              "Apple": np.random.randn(1000) + 0.17,
          },
          index=pd.date_range("1/1/2000", periods=1000),
      )
      df.index.name = "Date"
      df = df.cumsum()
      df = df + 50
      df = spark.createDataFrame(df.reset_index())
      p_basic_lineplot = df.plot_bokeh(
          kind="line", x="Date", show_figure=False
      )
      p_basic_lineplot_accessor = df.plot_bokeh.line(
          x="Date", show_figure=False
      )
  
      # Output plot as HTML:
      output = pandas_bokeh.row(
          [p_basic_lineplot, p_basic_lineplot_accessor]
      )
      with open(
          os.path.join(
              BASE_DIR, "Plots", "Basic_lineplot_PySpark.html"
          ),
          "w",
      ) as f:
          f.write(pandas_bokeh.embedded_html(output))
  
      assert True
  
file_path: Pandas-Bokeh/Tests/test_PySpark.py
imports: import os
  import sys
  import numpy
  import pandas
  import pytest
  import pandas_bokeh
label_desc: Use image node_id 2 for calling a global function with example usage: test_basic_lineplot_pyspark(spark) without return types