code: def safe_name(name):
      """
      Make *name* safe to use as a JavaScript variable name.
      """
      return "_".join(re.split(r"[@/-]", name)).upper()
  
file_path: matplotlib/tools/embed_js.py
imports: from collections import namedtuple
  from pathlib import Path
  import re
  import shutil
  import subprocess
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: safe_name(name) and returns: str