code: def test_dataframe_scatter() -> None:
      df = pl.DataFrame(
          {
              "length": [1, 4, 6],
              "width": [4, 5, 6],
              "species": ["setosa", "setosa", "versicolor"],
          }
      )
      df.plot.scatter(x="length", y="width", by="species")
  
file_path: polars/py-polars/tests/unit/namespaces/test_plot.py
imports: from datetime import date
  import pytest
  import polars
  from polars.exceptions import PolarsPanicError
label_desc: Use image node_id 1 for calling a global function with example usage: test_dataframe_scatter() without return types