code: def _makedirs(dirname):
      assert dirname is not None
      if dirname == "" or os.path.isdir(dirname):
          return
      try:
          os.makedirs(dirname)
      except OSError as e:
          if e.errno != errno.EEXIST:
              raise e
  
imports: import errno
  import logging
  import os
  import os.path
  import sys
  from termcolor import colored
  import shutil
  from datetime import datetime
label_desc: Use image node_id 1 for calling a global function with example usage: _makedirs(dirname) without return types