class_docstr: List of ports
  
  For use configuring a list of ports to consume
  
  Ports will be a list of valid ports
  
  Can be specified as a port-range string for convenience
  (mainly for use on the command-line)
  e.g. '10101-10105,10108'
code: def validate(self, obj, value):
      if isinstance(value, str):
          value = self.parse_port_range(value)
      value = super().validate(obj, value)
      for item in value:
          if not isinstance(item, int):
              raise TraitError(
                  f"Ports must be integers in range 1-65536, not {item!r}"
              )
          if not 1 <= item <= 65536:
              raise TraitError(
                  f"Ports must be integers in range 1-65536, not {item!r}"
              )
      return value
  
file_path: ipyparallel/ipyparallel/traitlets.py
imports: import entrypoints
  from traitlets import List, TraitError, Type
label_desc: Use image node_id 3 for calling the PortList obj's underlying member method code with example usage: obj.validate(obj, value) and returns: value