code: def mk_dirs_for_file(file_path: str) -> None:
      """Make all dirs specified for final file. If dir already exists,
      then silently continue.
  
      Args:
          file_path: Paths of dirs to be created (i.e., `mkdir -p`)
  
      Returns:
          None
      """
      dirs = os.path.split(file_path)[0]
      try:
          os.makedirs(dirs)
      except FileExistsError:
          # TODO: Log INFO level; it's OK if dir already exists
          return None
  
imports: import os
  import sys
  from contextlib import contextmanager
  from enum import EnumMeta, IntEnum
  from typing import Any, Dict, List, Optional, Union
  import requests
  from tqdm import tqdm
label_desc: Use image node_id 7 for calling a global function with example usage: mk_dirs_for_file(file_path) and returns: None