code: def _js_dict(encoder, data):
      pairs = [k + ": " + _js_val(encoder, v) for k, v in data.items()]
      return "{" + ", ".join(pairs) + "}"
  
file_path: popmon/popmon/resources.py
imports: import json
  import pathlib
  from jinja2 import Environment, FileSystemLoader
  from pkg_resources import resource_filename
  import popmon
label_desc: Use image node_id 2 for calling a global function with example usage: _js_dict(encoder, data) and returns: unknown