code: def test_display_format(styler):
      ctx = styler.format("{:0.1f}")._translate(True, True)
      assert all(
          ["display_value" in c for c in row] for row in ctx["body"]
      )
      assert all(
          [len(c["display_value"]) <= 3 for c in row[1:]]
          for row in ctx["body"]
      )
      assert len(ctx["body"][0][1]["display_value"].lstrip("-")) <= 3
  
imports: import numpy
  import pytest
  from pandas import NA, DataFrame, IndexSlice, MultiIndex, NaT, Timestamp, option_context
  from pandas.io.formats.style import Styler
  from pandas.io.formats.style_render import _str_escape
label_desc: Use image node_id 5 for calling a global function with example usage: test_display_format(styler) without return types