code: def match_path_tail(path1, path2):
      """Return True if one path ends the other."""
      if path1 == path2:
          return True
      if os.path.isabs(path1):
          if os.path.isabs(path2):
              return False
          return _match_tail(path1, path2)
      elif os.path.isabs(path2):
          return _match_tail(path2, path1)
      else:
          return _match_tail(path1, path2) or _match_tail(path2, path1)
  
imports: import fnmatch
  import glob
  import os
  import os.path
  import shutil
  import stat
  from .iterutil import iter_many
label_desc: Use image node_id 6 for calling a global function with example usage: match_path_tail(path1, path2) and returns: True, _match_tail, False, _match_tail, unknown