code: def _setup_proctitle(self, sock_port: Optional[int]) -> None:
      # TODO: similar to _setup_tracelog, the internal_process should have
      # a better way to have access to settings.
      disable_setproctitle = os.environ.get(
          "WANDB__DISABLE_SETPROCTITLE"
      )
      if disable_setproctitle:
          return
  
      setproctitle = wandb.util.get_optional_module("setproctitle")
      if setproctitle:
          service_ver = 2
          pid = str(self._pid or 0)
          transport = "s" if sock_port else "g"
          port = sock_port or 0
          # this format is similar to wandb_manager token, but it's purely informative now
          # (consider unifying this in the future)
          service_id = f"{service_ver}-{pid}-{transport}-{port}"
          proc_title = f"wandb-service({service_id})"
          self._startup_debug_print("before_setproctitle")
          setproctitle.setproctitle(proc_title)
          self._startup_debug_print("after_setproctitle")
  
file_path: wandb/wandb/sdk/service/server.py
imports: import logging
  import os
  import sys
  from typing import Optional
  import wandb
  from ..lib import tracelog
  from .None import _startup_debug, port_file
  from .server_sock import SocketServer
  from .streams import StreamMux
label_desc: Use image node_id 7 for calling the WandbServer obj's underlying member method code with example usage: obj._setup_proctitle(sock_port) without return types