code: def init(args):
      """Initialize a Guild environment.
  
      By default, creates `.guild` under `DIR`, or the current directory
      if `DIR` is omitted.
  
      NOTE: As of 0.9, this command does NOT create a virtual directory
      in `DIR`. To enable pre-0.9 behavior, specify `--venv` along with
      any of the applicable virtual environment options. We recommend
      creating a virtual environment using standard tools rather than
      using this command. Backward compatibility will be maintained via
      the `--venv` option.
  
      Options that are associated with virtual environments are noted as
      such below.
  
      ### Resource Cache
  
      By default resources are cached and shared at the user level in
      `~/.guild/cache/resources` so that resources downloaded from one
      environment are available to other environments. You can modify
      this behavior to have all resources downloaded local to the
      environment by specifying `--local-resource-cache`.
  
      ### Python Interpreter (virtual environments only)
  
      Use `--python` to specify the Python interpreter to use within the
      generated virtual environment. By default, the default Python
      interpreter for `virtualenv` is used unless `python` is explicitly
      listed as a requirement. If `no-venv` is specified, `--python` is
      ignored.
  
      ### Requirements (virtual environments only)
  
      By default, any required packages listed under packages.requires
      in `guild.yml` in the environment parent directory are installed
      into the environment. Use `--no-reqs` to suppress this behavior.
  
      Additionally, packages defined in `requirements.txt` in the
      environment parent directory will be installed. Use `--no-reqs` to
      suppress this behavior.
  
      Note that packages defined in `guild.yml` use Guild package names
      while packages defined in `requirements.txt` use PyPI package
      names.
  
      For information on requirements files, see:
  
      https://bit.ly/guild-help-req-files
  
      You may explicitly specify requirements file using `-r` or
      `--requirement`. If `-r, --requirement` is specified, Guild will
      not automatically install packages in `requirements.txt` -- that
      file must be specified explicitly in the command.
  
      ### Guild AI Version (virtual environments only)
  
      By default `init` installs the active version of Guild AI in the
      initialized environment. To install a different version, or to
      install a Guild wheel distribution file use the `--guild` option.
      """
      from . import init_impl
  
      init_impl.main(args)
  
file_path: guildai/guild/commands/init.py
imports: import click
  from guild import click_util
  from .None import ac_support
label_desc: Use image node_id 7 for calling a global function with example usage: init(args) without return types