code: def find_free_port():
      with closing(
          socket.socket(socket.AF_INET, socket.SOCK_STREAM)
      ) as s:
          s.bind(("", 0))
          s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
          return s.getsockname()[1]
  
file_path: BigDL/python/nano/src/bigdl/nano/deps/horovod/distributed_utils_horovod.py
imports: import os
  import json
  import shutil
  from tempfile import TemporaryDirectory
  from contextlib import closing
  import socket
  import tensorflow
  from bigdl.nano.utils.common import schedule_processors
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: find_free_port() and returns: s