code: def update_available_port(self):
      self.port = self.get_available_port(self.port, self.port + 10)
      self.target = f"localhost:{self.port}"
  
file_path: BigDL/python/ppml/src/bigdl/ppml/fl/utils.py
imports: from bigdl.dllib.utils.common import *
  import unittest
  import socket
  from bigdl.dllib.utils.log4Error import invalidOperationError
label_desc: Use image node_id 2 for calling the FLTest obj's underlying member method code with example usage: obj.update_available_port() without return types