code: def test_empty_sort_by_args() -> None:
      df = pl.DataFrame([1, 2, 3])
      with pytest.raises(pl.InvalidOperationError):
          df.select(pl.all().sort_by([]))
  
file_path: polars/py-polars/tests/unit/test_empty.py
imports: import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_empty_sort_by_args() without return types