code: def _detached_subprocess(args: Sequence[str], **kwargs) -> int:
      """Run in a detached subprocess."""
      kwargs.setdefault("stdin", subprocess.DEVNULL)
      kwargs.setdefault("stdout", subprocess.DEVNULL)
      kwargs.setdefault("stderr", subprocess.DEVNULL)
  
      if os.name == "nt":
          return _win_detached_subprocess(args, **kwargs)
      return _posix_detached_subprocess(args, **kwargs)
  
imports: import inspect
  import logging
  import os
  import subprocess
  import sys
  from contextlib import nullcontext
  from typing import TYPE_CHECKING, Any, List, Mapping, Optional, Sequence, Union
  from dvc.log import logger
  from dvc.env import DVC_DAEMON, DVC_DAEMON_LOGFILE
  from dvc.utils import fix_env, is_binary
  from dvc.utils.collections import ensure_list
label_desc: Use image node_id 6 for calling a global function with example usage: _detached_subprocess(args) and returns: _posix_detached_subprocess, _win_detached_subprocess