code: def generate(json_path):
      with open(json_path, "w+") as f:
          json.dump(demos_by_category, f)
  
label_desc: Use image node_id 2 for calling a global function with example usage: generate(json_path) without return types