code: def create_necessary_dirs(config):
      """Create some necessary directories to save some important files."""
      config.log_dir = os.path.join(config.log_dir, config.task_name)
      config.save_dir = os.path.join(config.save_dir, config.task_name)
      config.output_dir = os.path.join(
          config.output_dir, config.task_name
      )
  
      make_dir(config.log_dir)
      make_dir(config.save_dir)
      make_dir(config.output_dir)
  
imports: import sys
  import datetime
  import os
  import yaml
  import random
  import shutil
  import six
  import warnings
  import glob
label_desc: Use image node_id 5 for calling a global function with example usage: create_necessary_dirs(config) without return types