code: def test_list_arr_get() -> None:
      a = pl.Series("a", [[1, 2, 3], [4, 5], [6, 7, 8, 9]])
      out = a.list.get(0)
      expected = pl.Series("a", [1, 4, 6])
      assert_series_equal(out, expected)
      out = a.list[0]
      expected = pl.Series("a", [1, 4, 6])
      assert_series_equal(out, expected)
      out = a.list.first()
      assert_series_equal(out, expected)
      out = pl.select(pl.lit(a).list.first()).to_series()
      assert_series_equal(out, expected)
  
      out = a.list.get(-1)
      expected = pl.Series("a", [3, 5, 9])
      assert_series_equal(out, expected)
      out = a.list.last()
      assert_series_equal(out, expected)
      out = pl.select(pl.lit(a).list.last()).to_series()
      assert_series_equal(out, expected)
  
      a = pl.Series("a", [[1, 2, 3], [4, 5], [6, 7, 8, 9]])
      out = a.list.get(-3)
      expected = pl.Series("a", [1, None, 7])
      assert_series_equal(out, expected)
  
      assert pl.DataFrame(
          {"a": [[1], [2], [3], [4, 5, 6], [7, 8, 9], [None, 11]]}
      ).with_columns(
          [pl.col("a").list.get(i).alias(f"get_{i}") for i in range(4)]
      ).to_dict(
          as_series=False
      ) == {
          "a": [[1], [2], [3], [4, 5, 6], [7, 8, 9], [None, 11]],
          "get_0": [1, 2, 3, 4, 7, None],
          "get_1": [None, None, None, 5, 8, 11],
          "get_2": [None, None, None, 6, 9, None],
          "get_3": [None, None, None, None, None, None],
      }
  
      # get by indexes where some are out of bounds
      df = pl.DataFrame(
          {
              "cars": [[1, 2, 3], [2, 3], [4], []],
              "indexes": [-2, 1, -3, 0],
          }
      )
  
      assert df.select([pl.col("cars").list.get("indexes")]).to_dict(
          as_series=False
      ) == {"cars": [2, 3, None, None]}
      # exact on oob boundary
      df = pl.DataFrame(
          {
              "index": [3, 3, 3],
              "lists": [[3, 4, 5], [4, 5, 6], [7, 8, 9, 4]],
          }
      )
  
      assert df.select(pl.col("lists").list.get(3)).to_dict(
          as_series=False
      ) == {"lists": [None, None, 4]}
      assert df.select(
          pl.col("lists").list.get(pl.col("index"))
      ).to_dict(as_series=False) == {"lists": [None, None, 4]}
  
imports: from __future__ import annotations
  from datetime import date, datetime
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_list_arr_get() without return types