code: def create_dirs_recursive(path):
      if isinstance(path, dict):
          for p in path.values():
              create_dirs_recursive(p)
      elif isinstance(path, str):
          create_directory(path)
      else:
          raise ValueError(f"Wrong path: {path}")
  
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 4 for calling a global function with example usage: create_dirs_recursive(path) without return types