code: def write_dict(fn, dic):
      with open(fn, "w") as f:
          json.dump(dic, f, indent=2)
  
imports: import logging
  import json
  import numpy
  from collections import OrderedDict
  from .None import ontology
label_desc: Use image node_id 2 for calling a global function with example usage: write_dict(fn, dic) without return types