code: def _mkdirp(directory):
      """
      Equivalent to mkdir -p.
      """
      if not os.path.exists(directory):
          os.makedirs(directory)
  
file_path: ParlAI/website/generate.py
imports: import os
  import git
  import markdown
  import shutil
  from mdx_gfm import PartialGithubFlavoredMarkdownExtension
label_desc: Use image node_id 3 for calling a global function with example usage: _mkdirp(directory) without return types