code: def escapejs(val: Any) -> str:
      return json.dumps(str(val))
  
file_path: hiplot/hiplot/render.py
imports: import sys
  import argparse
  import uuid
  import base64
  import json
  from typing import Any, Dict
  from pathlib import Path
  import codecs
  from .None import fetchers
label_desc: Use image node_id 1 for calling a global function with example usage: escapejs(val) and returns: json