code: def touch(path, content=""):
      ensure_dir_exists(os.path.dirname(path))
      with open(path, "w", encoding="utf-8") as f:
          f.write(content)
  
imports: from __future__ import annotations
  import os
  import re
  import shutil
  from tempfile import mkdtemp
  from unittest.mock import patch
  import pytest
  from jupyter_core import migrate
  from jupyter_core.application import JupyterApp
  from jupyter_core.migrate import migrate, migrate_config, migrate_dir, migrate_file, migrate_one, migrate_static_custom
  from jupyter_core.utils import ensure_dir_exists
label_desc: Use image node_id 3 for calling a global function with example usage: touch(path, content) without return types