code: def test_scatter():
      iris = px.data.iris()
      fig = px.scatter(iris, x="sepal_width", y="sepal_length")
      assert fig.data[0].type == "scatter"
      assert np.all(fig.data[0].x == iris.sepal_width)
      assert np.all(fig.data[0].y == iris.sepal_length)
      # test defaults
      assert fig.data[0].mode == "markers"
  
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 1 for calling a global function with example usage: test_scatter() without return types