code: def get_filename(filepath):
      return os.path.basename(filepath)
  
imports: import os
  import collections
  from dataclasses import dataclass
  from modules import paths, shared, devices, script_callbacks, sd_models, extra_networks, lowvram, sd_hijack, hashes
  import glob
  from copy import deepcopy
label_desc: Use image node_id 7 for calling a global function with example usage: get_filename(filepath) and returns: os