code: def port(self, port_range: PortRange = PortRange.ALL) -> int:
          
          if port_range and port_range in PortRange:
              return self.random.randint(*port_range.value)
          else:
              raise NonEnumerableError(PortRange)
docs: Generate random port.
  
          :param port_range: Range enum object.
          :return: Port number.
          :raises NonEnumerableError: if port_range is not in PortRange.
  
          :Example:
              8080