code: def get_variable_name(variable) -> str:
      """Get the variable name from the variable tensor."""
      param_name = variable.name
      m = re.match("^(.*):\\d+$", param_name)
      if m is not None:
          param_name = m.group(1)
      return param_name
  
imports: import re
  import tensorflow
  from typing import List
label_desc: Use image node_id 2 for calling a global function with example usage: get_variable_name(variable) and returns: param_name