code: def test_selector_by_name(df: pl.DataFrame) -> None:
      for selector in (
          cs.by_name("abc", "cde"),
          cs.by_name("abc") | pl.col("cde"),
      ):
          assert df.select(selector).columns == [
              "abc",
              "cde",
          ]
      assert df.select(
          ~cs.by_name("abc", "cde", "ghi", "Lmn", "opp", "eee")
      ).columns == [
          "bbb",
          "def",
          "fgg",
          "JJK",
          "qqR",
      ]
  
imports: from typing import Any
  import pytest
  import polars
  import polars.selectors
  from polars.selectors import expand_selector, is_selector
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 5 for calling a global function with example usage: test_selector_by_name(df) without return types