code: def get_listening_tcp_ports(process):
      """Retrieves a list of TCP ports that the specified process is listening on.
  
      Args:
          process (psutil.Process): the process to check
  
      Returns:
          generator of integers
      """
      for conn in process.connections(kind="tcp"):
          if (
              not conn.raddr  # not connected to a remote socket
              and conn.status == psutil.CONN_LISTEN
          ):
              yield conn.laddr[1]
  
file_path: fiftyone/fiftyone/service/util.py
imports: import psutil
  from fiftyone.service.ipc import send_request
label_desc: Use image node_id 5 for calling a global function with example usage: get_listening_tcp_ports(process) without return types