code: def basename(p):
      """Returns the final component of a pathname"""
      p = os.fspath(p)
      sep = _get_sep(p)
      i = p.rfind(sep) + 1
      return p[i:]
  
imports: import os
  import sys
  import stat
  import genericpath
  from genericpath import *
label_desc: Use image node_id 9 for calling a global function with example usage: basename(p) and returns: p