code: def create_directory(path):
      path = Path(path)
      path.mkdir(mode=0o777, exist_ok=True, parents=True)
  
file_path: mindsdb/mindsdb/utilities/fs.py
imports: import os
  import tempfile
  import threading
  import time
  from pathlib import Path
  from typing import Optional
  import psutil
  from appdirs import user_data_dir
  from mindsdb.utilities import log
label_desc: Use image node_id 1 for calling a global function with example usage: create_directory(path) without return types