code: def test_numeric_right_alignment() -> None:
      pl.Config.set_tbl_cell_numeric_alignment("RIGHT")
  
      df = pl.DataFrame(
          {"a": [1, 2, 3], "b": [4, 5, 6], "c": [7, 8, 9]}
      )
      assert (
          str(df) == "shape: (3, 3)\n"
          "┌─────┬─────┬─────┐\n"
          "│   a ┆   b ┆   c │\n"
          "│ --- ┆ --- ┆ --- │\n"
          "│ i64 ┆ i64 ┆ i64 │\n"
          "╞═════╪═════╪═════╡\n"
          "│   1 ┆   4 ┆   7 │\n"
          "│   2 ┆   5 ┆   8 │\n"
          "│   3 ┆   6 ┆   9 │\n"
          "└─────┴─────┴─────┘"
      )
  
      df = pl.DataFrame(
          {
              "a": [1.1, 2.22, 3.333],
              "b": [4.0, 5.0, 6.0],
              "c": [7.0, 8.0, 9.0],
          }
      )
      with pl.Config():
          pl.Config.set_fmt_float("full")
          assert (
              str(df) == "shape: (3, 3)\n"
              "┌───────┬─────┬─────┐\n"
              "│     a ┆   b ┆   c │\n"
              "│   --- ┆ --- ┆ --- │\n"
              "│   f64 ┆ f64 ┆ f64 │\n"
              "╞═══════╪═════╪═════╡\n"
              "│   1.1 ┆   4 ┆   7 │\n"
              "│  2.22 ┆   5 ┆   8 │\n"
              "│ 3.333 ┆   6 ┆   9 │\n"
              "└───────┴─────┴─────┘"
          )
  
      with pl.Config(fmt_float="mixed"):
          assert (
              str(df) == "shape: (3, 3)\n"
              "┌───────┬─────┬─────┐\n"
              "│     a ┆   b ┆   c │\n"
              "│   --- ┆ --- ┆ --- │\n"
              "│   f64 ┆ f64 ┆ f64 │\n"
              "╞═══════╪═════╪═════╡\n"
              "│   1.1 ┆ 4.0 ┆ 7.0 │\n"
              "│  2.22 ┆ 5.0 ┆ 8.0 │\n"
              "│ 3.333 ┆ 6.0 ┆ 9.0 │\n"
              "└───────┴─────┴─────┘"
          )
  
      with pl.Config(float_precision=6):
          assert str(df) == (
              "shape: (3, 3)\n"
              "┌──────────┬──────────┬──────────┐\n"
              "│        a ┆        b ┆        c │\n"
              "│      --- ┆      --- ┆      --- │\n"
              "│      f64 ┆      f64 ┆      f64 │\n"
              "╞══════════╪══════════╪══════════╡\n"
              "│ 1.100000 ┆ 4.000000 ┆ 7.000000 │\n"
              "│ 2.220000 ┆ 5.000000 ┆ 8.000000 │\n"
              "│ 3.333000 ┆ 6.000000 ┆ 9.000000 │\n"
              "└──────────┴──────────┴──────────┘"
          )
          with pl.Config(float_precision=None):
              assert (
                  str(df) == "shape: (3, 3)\n"
                  "┌───────┬─────┬─────┐\n"
                  "│     a ┆   b ┆   c │\n"
                  "│   --- ┆ --- ┆ --- │\n"
                  "│   f64 ┆ f64 ┆ f64 │\n"
                  "╞═══════╪═════╪═════╡\n"
                  "│   1.1 ┆ 4.0 ┆ 7.0 │\n"
                  "│  2.22 ┆ 5.0 ┆ 8.0 │\n"
                  "│ 3.333 ┆ 6.0 ┆ 9.0 │\n"
                  "└───────┴─────┴─────┘"
              )
  
      df = pl.DataFrame(
          {
              "a": [1.1, 22.2, 3.33],
              "b": [444, 55.5, 6.6],
              "c": [77.7, 8888, 9.9999],
          }
      )
      with pl.Config(fmt_float="full", float_precision=1):
          assert (
              str(df) == "shape: (3, 3)\n"
              "┌──────┬───────┬────────┐\n"
              "│    a ┆     b ┆      c │\n"
              "│  --- ┆   --- ┆    --- │\n"
              "│  f64 ┆   f64 ┆    f64 │\n"
              "╞══════╪═══════╪════════╡\n"
              "│  1.1 ┆ 444.0 ┆   77.7 │\n"
              "│ 22.2 ┆  55.5 ┆ 8888.0 │\n"
              "│  3.3 ┆   6.6 ┆   10.0 │\n"
              "└──────┴───────┴────────┘"
          )
  
      df = pl.DataFrame(
          {
              "a": [
                  1100000000000000000.1,
                  22200000000000000.2,
                  33330000000000000.33333,
              ],
              "b": [40000000000000000000.0, 5, 600000000000000000.0],
              "c": [700000.0, 80000000000000000.0, 900],
          }
      )
      with pl.Config(float_precision=2):
          assert (
              str(df) == "shape: (3, 3)\n"
              "┌─────────┬─────────┬───────────┐\n"
              "│       a ┆       b ┆         c │\n"
              "│     --- ┆     --- ┆       --- │\n"
              "│     f64 ┆     f64 ┆       f64 │\n"
              "╞═════════╪═════════╪═══════════╡\n"
              "│ 1.10e18 ┆ 4.00e19 ┆ 700000.00 │\n"
              "│ 2.22e16 ┆    5.00 ┆   8.00e16 │\n"
              "│ 3.33e16 ┆ 6.00e17 ┆    900.00 │\n"
              "└─────────┴─────────┴───────────┘"
          )
  
imports: from __future__ import annotations
  import os
  from pathlib import Path
  from typing import Any, Iterator
  import pytest
  import polars
  import polars.polars
  from polars.config import _POLARS_CFG_ENV_VARS
label_desc: Use image node_id 11 for calling a global function with example usage: test_numeric_right_alignment() without return types