code: def free_port():
      sock = socket.socket()
      sock.bind(("", 0))
  
      _, port = sock.getsockname()
      return port
  
file_path: wandb/tests/pytest_tests/unit_tests_old/utils/utils.py
imports: import io
  import os
  import shutil
  import socket
  from typing import Union
label_desc: Use image node_id 10 for calling a global function with example usage: free_port() and returns: port