code: def get_json(arena):
      """Generate static Arena data source in JSON format
  
      Function run calculations for all not cached plots. Then all
      are exported as static data source JSON.
  
      Parameters
      -----------
      arena : object of class Arena
          Arena object
  
      Returns
      --------
      str
      """
      arena.plots_manager.fill_cache()
      result = json.dumps(
          {
              "version": "1.2.0",
              "availableParams": arena.list_available_params(),
              "paramsAttributes": arena.get_params_attributes(),
              "data": list(
                  map(
                      lambda p: p.serialize(), arena.plots_manager.cache
                  )
              ),
          },
          default=convert,
      )
      return result
  
file_path: DALEX/python/dalex/dalex/arena/static.py
imports: import json
  import webbrowser
  import random
  import socket
  import logging
  import sys
  from .server import convert
label_desc: Use image node_id 4 for calling a global function with example usage: get_json(arena) and returns: result