code: def is_directory(f):
      """Checks if an object is a string, and that it points to a directory."""
      return is_path(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: is_directory(f) and returns: unknown