parameters: (self, port)
return_statement: return port in self._port_to_node
docstring: Determines if this device has a device connected to the given port.
docstring_summary: Determines if this device has a device connected to the given port.
docstring_tokens: Determines if this device has a device connected to the given port .
function: def HasPort(self, port):
      """Determines if this device has a device connected to the given port."""
      return port in self._port_to_node
function_tokens: def HasPort ( self , port ) : return port in self . _port_to_node