code: def getFileBaseName(filePathName):
      return path.splitext(path.basename(filePathName))[0]
  
file_path: cugraph/ci/utils/nbtestlog2junitxml.py
imports: import re
  from xml.etree.ElementTree import Element, ElementTree
  from os import path
  import string
  from enum import Enum
label_desc: Use image node_id 1 for calling a global function with example usage: getFileBaseName(filePathName) and returns: path