code: def id_from_fname(fname: str) -> str:
      return os.path.splitext(os.path.basename(fname))[0]
  
file_path: pytorch-toolbelt/pytorch_toolbelt/utils/fs.py
imports: import glob
  import os
  from pathlib import Path
  from typing import Union, List, Iterable
  import cv2
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: id_from_fname(fname) and returns: os