input: Write a python function to create a directory if it does not exist.
  assert create_directory("/tmp/testdir") == True
  assert create_directory("/tmp/existingdir") == True
  assert create_directory("/tmp/testdir/nested") == True
output: import os
  
  def create_directory(path):
      try:
          os.makedirs(path, exist_ok=True)
          return True
      except Exception as e:
          return False