code: def test_fmt_float(capfd: pytest.CaptureFixture[str]) -> None:
      s = pl.Series(
          name="foo",
          values=[7.966e-05, 7.9e-05, 8.4666e-05, 8.00007966],
      )
      print(s)
      out, err = capfd.readouterr()
      expected = """shape: (4,)
  Series: 'foo' [f64]
  [
  	0.00008
  	0.000079
  	0.000085
  	8.00008
  ]
  """
      assert out == expected
  
file_path: polars/py-polars/tests/unit/test_format.py
imports: from __future__ import annotations
  from decimal import Decimal
  from typing import Any, Iterator
  import pytest
  import polars
  from polars import ComputeError
label_desc: Use image node_id 3 for calling a global function with example usage: test_fmt_float(capfd) without return types