code: def isDirectory(f):
      return isPath(f) and os.path.isdir(f)
  
imports: import os
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: isDirectory(f) and returns: unknown