code: def _inform_used_ports(self, sock_port: Optional[int]) -> None:
      if not self._port_fname:
          return
      pf = port_file.PortFile(sock_port=sock_port)
      pf.write(self._port_fname)
  
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 2 for calling the WandbServer obj's underlying member method code with example usage: obj._inform_used_ports(sock_port) without return types