code: def ensure_directory(directory):
      """Create directory if it doesn't exist."""
      if not os.path.exists(directory):
          os.makedirs(directory)
  
imports: from __future__ import absolute_import, unicode_literals
  import base64
  import hashlib
  import json
  import logging
  import os
  import pickle
  from builtins import str
  import numpy
  from atm.compat import getargs
label_desc: Use image node_id 4 for calling a global function with example usage: ensure_directory(directory) without return types