code: def test_projection_join_names_9955() -> None:
      batting = pl.DataFrame(
          {
              "playerID": ["abercda01"],
              "yearID": [1871],
              "lgID": ["NA"],
          }
      ).lazy()
  
      awards_players = pl.DataFrame(
          {
              "playerID": ["bondto01"],
              "yearID": [1877],
              "lgID": ["NL"],
          }
      ).lazy()
  
      right = awards_players.filter(pl.col("lgID") == "NL").select(
          "playerID"
      )
  
      q = batting.join(
          right,
          left_on=[pl.col("playerID")],
          right_on=[pl.col("playerID")],
          how="inner",
      )
  
      q = q.select(batting.columns)
  
      assert q.collect().schema == {
          "playerID": pl.String,
          "yearID": pl.Int64,
          "lgID": pl.String,
      }
  
file_path: polars/py-polars/tests/unit/test_projections.py
imports: import numpy
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 14 for calling a global function with example usage: test_projection_join_names_9955() without return types