code: def _sock_path(temp_dir: str) -> str:
      return f"{temp_dir}/sock"
  
file_path: dstack/gateway/src/dstack/gateway/services/tunnel.py
imports: import logging
  import os
  import shlex
  import shutil
  import subprocess
  import tempfile
  from typing import List, Optional
  from pydantic import BaseModel
  from dstack.gateway.errors import SSHError
label_desc: Use image node_id 1 for calling a global function with example usage: _sock_path(temp_dir) and returns: temp_dir, str