code: def delete_contents(directory: str | Path) -> None:
      """Delete all contents of a directory, but not the directory itself."""
      path = Path(directory)
      for child in path.glob("*"):
          if child.is_file():
              child.unlink()
          elif child.is_dir():
              shutil.rmtree(child)
  
imports: from __future__ import annotations
  import dataclasses
  import inspect
  import json
  import re
  import shutil
  import textwrap
  from pathlib import Path
  from typing import Literal
  import gradio
label_desc: Use image node_id 5 for calling a global function with example usage: delete_contents(directory) without return types