code: def test_map_elements_numpy_int_out() -> None:
      df = pl.DataFrame({"col1": [2, 4, 8, 16]})
      result = df.with_columns(
          pl.col("col1")
          .map_elements(lambda x: np.left_shift(x, 8))
          .alias("result")
      )
      expected = pl.DataFrame(
          {"col1": [2, 4, 8, 16], "result": [512, 1024, 2048, 4096]}
      )
      assert_frame_equal(result, expected)
  
      df = pl.DataFrame({"col1": [2, 4, 8, 16], "shift": [1, 1, 2, 2]})
      result = df.select(
          pl.struct(["col1", "shift"])
          .map_elements(
              lambda cols: np.left_shift(cols["col1"], cols["shift"])
          )
          .alias("result")
      )
      expected = pl.DataFrame({"result": [4, 8, 32, 64]})
      assert_frame_equal(result, expected)
  
imports: from __future__ import annotations
  import json
  from datetime import date, datetime, timedelta
  import numpy
  import pytest
  import polars
  from polars.exceptions import PolarsInefficientMapWarning
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_map_elements_numpy_int_out() without return types