code: def check_dir(path):
      """Create a directory if it doesn't exist."""
      if not os.path.exists(path):
          os.mkdir(path)
  
file_path: auptimizer/src/aup/Proposer/spearmint/helpers.py
imports: import os
  import sys
  import subprocess
  import tempfile
  from google.protobuf import text_format
  from .spearmint_pb2 import *
label_desc: Use image node_id 4 for calling a global function with example usage: check_dir(path) without return types