code: def return_ports(ports):
      """Returns previously reserved ports so that may be reused."""
      for port in ports:
          if port in _contiguous_ports:
              _contiguous_ports.discard(port)
          else:
              portpicker.return_port(port)
  
imports: import time
  import portpicker
label_desc: Use image node_id 3 for calling a global function with example usage: return_ports(ports) without return types