code: def get_image_filename(path: str):
      """
      Get the filename (without extension) from its path.
  
      Parameters
      ----------
      path
          The path of image.
  
      Returns
      -------
      The file name of image.
      """
      return Path(path.replace("\\", "/")).stem
  
imports: import json
  import logging
  import os
  import warnings
  from pathlib import Path
  from typing import Dict, Iterable, List, Optional, Union
  import defusedxml.ElementTree
  import numpy
  import pandas
  import PIL
  from torchmetrics.detection.mean_ap import MeanAveragePrecision
  from ..constants import BBOX, LABEL, MAP, MAP_50, MAP_75, MAP_LARGE, MAP_MEDIUM, MAP_SMALL, MAR_1, MAR_10, MAR_100, MAR_LARGE, MAR_MEDIUM, MAR_SMALL, MEAN_AVERAGE_PRECISION
  from .download import download, is_url
label_desc: Use image node_id 18 for calling a global function with example usage: get_image_filename(path) and returns: Path