code: def get_base_filename(path: str):
      """
      Takes a file path, returns (base_filename_with_extension, base_filename_without_extension)
      """
      base_filename_with_extension = ntpath.basename(path)
      base_filename_without_extension, _ = os.path.splitext(
          base_filename_with_extension
      )
      return (
          base_filename_with_extension,
          base_filename_without_extension,
      )
  
imports: import glob
  import json
  import ntpath
  import os
  import pickle
  import re
  import urllib.request
  import zipfile
  from pathlib import Path
  from typing import Optional
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: get_base_filename(path) and returns: base_filename_with_extension,  base_filename_without_extension