code: def get_port_from_range(start, end):
      while True:
          port = random.randint(start, end)
          if is_port_available(port):
              break
  
      return port
  
file_path: PARL/parl/utils/machine_info.py
imports: import os
  import platform
  import random
  import socket
  import subprocess
  from parl.utils import logger, _HAS_FLUID, _HAS_PADDLE, _IS_WINDOWS
label_desc: Use image node_id 7 for calling a global function with example usage: get_port_from_range(start, end) and returns: port