code: def __init__(self, sock_port: Optional[int] = None) -> None:
      self._sock_port = sock_port
      self._valid = False
  
file_path: wandb/wandb/sdk/service/port_file.py
imports: import os
  import tempfile
  from typing import Optional
label_desc: Use image node_id 1 to create a new PortFile object  with example: obj = PortFile(sock_port)