code: def _suppress_resource_warning(popen: subprocess.Popen) -> None:
      """Sets the returncode to avoid ResourceWarning when popen is garbage collected."""
      # only use for daemon processes.
      # See https://bugs.python.org/issue38890.
      popen.returncode = 0
  
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 1 for calling a global function with example usage: _suppress_resource_warning(popen) without return types