code: def get_suffix_path(current_path, levels=1):
      current_new = current_path
      for i in range(levels + 1):
          current_new = os.path.dirname(current_new)
  
      return os.path.relpath(current_path, current_new)
  
imports: import os
  import glob
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: get_suffix_path(current_path, levels) and returns: os