code: def create(
      env_dir,
      system_site_packages=False,
      clear=False,
      symlinks=False,
      with_pip=False,
      prompt=None,
      upgrade_deps=False,
  ):
      """Create a virtual environment in a directory."""
      builder = EnvBuilder(
          system_site_packages=system_site_packages,
          clear=clear,
          symlinks=symlinks,
          with_pip=with_pip,
          prompt=prompt,
          upgrade_deps=upgrade_deps,
      )
      builder.create(env_dir)
  
imports: import logging
  import os
  import shutil
  import subprocess
  import sys
  import sysconfig
  import types
label_desc: Use image node_id 1 for calling a global function with example usage: create(env_dir, system_site_packages, clear, symlinks, with_pip, prompt, upgrade_deps) without return types