code: def find_second_level_folder(root):
      # Walk through the root directory
      for foldername, subfolders, filenames in os.walk(root):
          # Check if the current folder is a second-level folder by comparing its depth to the root's depth
          if (
              foldername.count(os.path.sep)
              == root.count(os.path.sep) + 1
          ):
              # Return the name of the second-level folder
              return os.path.basename(foldername)
      # Return None if no such folder is found
      return None
  
imports: import getpass
  import os
  import shutil
  import glob
label_desc: Use image node_id 1 for calling a global function with example usage: find_second_level_folder(root) and returns: None, os