code: def get_cmdline_command_name(intfspec):
      """Given an interface specification return a cmdline command name"""
      if len(intfspec) > 2:
          name = intfspec[2]
      else:
          name = intfspec[0].split(".")[-1].replace("_", "-")
      return name
  
label_desc: Use image node_id 2 for calling a global function with example usage: get_cmdline_command_name(intfspec) and returns: name