code: def mkdir_if_not_exists(dir, verbose, dry_run):
      if verbose:
          logging.info(f"create directory {dir}")
      if not dry_run:
          os.makedirs(dir, exist_ok=True)
  
imports: import argparse
  import copy
  import logging
  import os
  import platform
  import subprocess
  import sys
  import tempfile
  from typing import Dict
label_desc: Use image node_id 3 for calling a global function with example usage: mkdir_if_not_exists(dir, verbose, dry_run) without return types