code: def normalize_tick_formats(tick_formats):
      if type(tick_formats) == dict:
          return tick_formats
      if tick_formats is None:
          s = "%d"
      elif type(tick_formats) == str:
          s = tick_formats
      else:
          raise TypeError(
              "tick_formats must be a dictionary of strings"
              " a string, or None."
          )
      return {"b": s, "l": s, "r": s}
  
file_path: python-ternary/ternary/lines.py
imports: from numpy import arange
  from matplotlib.lines import Line2D
  from .helpers import project_point
label_desc: Use image node_id 8 for calling a global function with example usage: normalize_tick_formats(tick_formats) and returns: dict, tick_formats