code: def generate(json_path):
      with open(json_path, "w+") as f:
          json.dump(docs, f)
  
file_path: gradio/js/_website/generate_jsons/src/docs/__init__.py
imports: import html
  import json
  import os
  from gradio_client.documentation import document_cls, generate_documentation
  import gradio
  from ..guides import guides
  import requests
label_desc: Use image node_id 10 for calling a global function with example usage: generate(json_path) without return types