code: def get_svg_filename_from_versionkey(fn_source, ver):
      basename = os.path.basename(fn_source)
      if ver == "":
          return basename
      name, ext = os.path.splitext(basename)
      prefix = svg_sizes[ver]["prefix"]
      fn_out = "{}-{}.svg".format(name, prefix)
      return fn_out
  
file_path: sympy/doc/generate_logos.py
imports: from argparse import ArgumentParser
  import xml.dom.minidom
  import os.path
  import logging
  import subprocess
  import sys
  from platform import system
label_desc: Use image node_id 6 for calling a global function with example usage: get_svg_filename_from_versionkey(fn_source, ver) and returns: fn_out, basename