parameters: (hub, hub_type)
return_statement: return {port: device for (port, device) in port_device}
docstring: Gets physical-port:node mapping for a given hub.
    Args:
      hub: [USBNode] Hub to get map for.
      hub_type: [usb_hubs.HubType] Which type of hub it is.
  
    Returns:
      Dict of {physical port: node}
docstring_summary: Gets physical-port:node mapping for a given hub.
    Args:
      hub: [USBNode] Hub to get map for.
      hub_type: [usb_hubs.HubType] Which type of hub it is.
docstring_tokens: Gets physical - port : node mapping for a given hub . Args : hub : [ USBNode ] Hub to get map for . hub_type : [ usb_hubs . HubType ] Which type of hub it is .
function: def GetPhysicalPortToNodeMap(hub, hub_type):
    """Gets physical-port:node mapping for a given hub.
    Args:
      hub: [USBNode] Hub to get map for.
      hub_type: [usb_hubs.HubType] Which type of hub it is.
  
    Returns:
      Dict of {physical port: node}
    """
    port_device = hub_type.GetPhysicalPortToNodeTuples(hub)
    return {port: device for (port, device) in port_device}
function_tokens: def GetPhysicalPortToNodeMap ( hub , hub_type ) : port_device = hub_type . GetPhysicalPortToNodeTuples ( hub ) return { port : device for ( port , device ) in port_device }