code: def get_savename_from_varname(
      varname, varname_prefix=None, savename_prefix=None
  ):
      """
      Args:
          varname(str): a variable name in the graph
          varname_prefix(str): an optional prefix that may need to be removed in varname
          savename_prefix(str): an optional prefix to append to all savename
      Returns:
          str: the name used to save the variable
      """
      name = varname
      if varname_prefix is not None and name.startswith(varname_prefix):
          name = name[len(varname_prefix) + 1 :]
      if savename_prefix is not None:
          name = savename_prefix + "/" + name
      return name
  
imports: import glob
  import operator
  import numpy
  import os
  import pprint
  import six
  import tensorflow
  from ..compat import tfv1
  from ..utils import logger
  from .common import get_op_tensor_name
label_desc: Use image node_id 1 for calling a global function with example usage: get_savename_from_varname(varname, varname_prefix, savename_prefix) and returns: name