code: def test_apply_deprecated() -> None:
      with pytest.deprecated_call():
          pl.col("a").apply(lambda x: x + 1)
      with pytest.deprecated_call():
          pl.Series([1, 2, 3]).apply(lambda x: x + 1)
  
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 20 for calling a global function with example usage: test_apply_deprecated() without return types