code: def test_render_mode():
      df = px.data.gapminder()
      df2007 = df.query("year == 2007")
      fig = px.scatter(
          df2007, x="gdpPercap", y="lifeExp", trendline="ols"
      )
      assert fig.data[0].type == "scatter"
      assert fig.data[1].type == "scatter"
      fig = px.scatter(
          df2007,
          x="gdpPercap",
          y="lifeExp",
          trendline="ols",
          render_mode="webgl",
      )
      assert fig.data[0].type == "scattergl"
      assert fig.data[1].type == "scattergl"
      fig = px.scatter(df, x="gdpPercap", y="lifeExp", trendline="ols")
      assert fig.data[0].type == "scattergl"
      assert fig.data[1].type == "scattergl"
      fig = px.scatter(
          df,
          x="gdpPercap",
          y="lifeExp",
          trendline="ols",
          render_mode="svg",
      )
      assert fig.data[0].type == "scatter"
      assert fig.data[1].type == "scatter"
      fig = px.density_contour(
          df, x="gdpPercap", y="lifeExp", trendline="ols"
      )
      assert fig.data[0].type == "histogram2dcontour"
      assert fig.data[1].type == "scatter"
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_optional/test_px/test_px.py
imports: import plotly.express
  import plotly.io
  import numpy
  import pytest
  from itertools import permutations
label_desc: Use image node_id 12 for calling a global function with example usage: test_render_mode() without return types