code: def test_pretty_print_format():
      locator = MaxNLocator()
      locs, nloc, factor = locator(0, 100)
  
      fmt = FormatterPrettyPrint()
  
      assert fmt("left", None, locs) == [
          r"$\mathdefault{%d}$" % (l,) for l in locs
      ]
  
imports: import numpy
  import pytest
  from matplotlib.transforms import Bbox
  from mpl_toolkits.axisartist.grid_finder import _find_line_box_crossings, FormatterPrettyPrint, MaxNLocator
label_desc: Use image node_id 2 for calling a global function with example usage: test_pretty_print_format() without return types