code: def test_sql_arctan2() -> None:
      twoRootTwo = math.sqrt(2) / 2.0
      df = pl.DataFrame(
          {
              "y": [twoRootTwo, -twoRootTwo, twoRootTwo, -twoRootTwo],
              "x": [twoRootTwo, twoRootTwo, -twoRootTwo, -twoRootTwo],
          }
      )
  
      sql = pl.SQLContext(df=df)
      res = sql.execute(
          """
          SELECT
          ATAN2D(y,x) as "atan2d",
          ATAN2(y,x) as "atan2"
          FROM df
          """,
          eager=True,
      )
  
      df_result = pl.DataFrame({"atan2d": [45.0, -45.0, 135.0, -135.0]})
      df_result = df_result.with_columns(
          pl.col("atan2d").cast(pl.Float64)
      )
      df_result = df_result.with_columns(
          pl.col("atan2d").radians().alias("atan2")
      )
  
      assert_frame_equal(df_result, res)
  
imports: from __future__ import annotations
  import datetime
  import math
  from pathlib import Path
  import pytest
  import polars
  import polars.selectors
  from polars.exceptions import ComputeError, InvalidOperationError
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_sql_arctan2() without return types