code: def _build_cytoscape_json(cytoscape):
      json_di = {
          "elements": cytoscape.elements,
          "layout": cytoscape.layout,
          "style": cytoscape.style,
          "stylesheet": cytoscape.stylesheet,
      }
      return json.dumps(json_di)
  
file_path: interpret/python/interpret-core/interpret/visual/_inline.py
imports: import os
  import time
  import uuid
  from plotly.io import to_json
  from plotly import graph_objs
  import sys
  import json
  import base64
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: _build_cytoscape_json(cytoscape) and returns: json