code: def test_sql_string_lengths() -> None:
      df = pl.DataFrame({"words": ["Café", None, "東京"]})
  
      with pl.SQLContext(frame=df) as ctx:
          res = ctx.execute(
              """
              SELECT
                words,
                LENGTH(words) AS n_chars,
                OCTET_LENGTH(words) AS n_bytes
              FROM frame
              """
          ).collect()
  
      assert res.to_dict(as_series=False) == {
          "words": ["Café", None, "東京"],
          "n_chars": [4, None, 2],
          "n_bytes": [5, None, 6],
      }
  
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 27 for calling a global function with example usage: test_sql_string_lengths() without return types