code: def create_directory(path):
      if not os.path.exists(path):
          # Create the directory
          try:
              os.makedirs(path)
          except OSError as e:
              raise OSError(f"Error creating directory: {e}") from e
  
imports: import os
  from pandasai.exceptions import InvalidWorkspacePathError
label_desc: Use image node_id 3 for calling a global function with example usage: create_directory(path) without return types