code: def get_hf_model_name(model_id):
      parts = model_id.split("/")
      if len(parts) == 1:
          model_id = parts[0]
      else:
          model_id = "/".join(parts[1:])
      if model_id.startswith("xlm-roberta"):
          model_name = "xlm-roberta"
      else:
          model_name = model_id.split("-")[0]
      return model_name
  
imports: from .imports import *
  from subprocess import Popen
label_desc: Use image node_id 39 for calling a global function with example usage: get_hf_model_name(model_id) and returns: model_name