docstr: Loads the fonts from a json file iopath uri
  
  @returns mapping: the key corresponds to the font name; the value is
      a str if the font is the same for any replacement and the value is
      a dict[str, str] if the font maps every letter to a new font letter
docstr_tok: ["Loads","the","fonts","from","a","json","file","iopath","uri","@","returns","mapping",":","the","key","corresponds","to","the","font","name",";","the","value","is","a","str","if","the","font","is","the","same","for","any","replacement","and","the","value","is","a","dict","[","str",",","str","]","if","the","font","maps","every","letter","to","a","new","font","letter"]
code: def load_fonts(self, fonts_path: str) -> List[Union[str, dict]]:
      """
      Loads the fonts from a json file iopath uri
  
      @returns mapping: the key corresponds to the font name; the value is
          a str if the font is the same for any replacement and the value is
          a dict[str, str] if the font maps every letter to a new font letter
      """
      local_fonts_path = pathmgr.get_local_path(fonts_path)
  
      with open(local_fonts_path, encoding="utf-8") as text_file:
          font_dictionary = json.load(text_file)
          return list(font_dictionary.values())
  
      return []
  
file_path: AugLy/augly/text/augmenters/fun_fonts.py
imports: import json
  import random
  from typing import List, Optional, Union
  from augly.text.augmenters.utils import detokenize, get_aug_idxes, tokenize
  from augly.utils import pathmgr
  from augly.utils.libsndfile import install_libsndfile
  from nlpaug import Augmenter
  from nlpaug.util import Action, Method
label_desc: Use image node_id 2 for calling the FunFontsAugmenter obj's underlying member method code with example usage: obj.load_fonts(fonts_path) and returns: list, list