parameters: (bus, hub_types)
docstring: Scans for all hubs on a bus of given hub types.
  
    Args:
      bus: [USBNode] Bus object.
      hub_types: [iterable(usb_hubs.HubType)] Possible types of hubs.
  
    Yields:
      Sequence of tuples representing (hub, type of hub)
docstring_summary: Scans for all hubs on a bus of given hub types.
docstring_tokens: Scans for all hubs on a bus of given hub types .
function: def GetHubsOnBus(bus, hub_types):
    """Scans for all hubs on a bus of given hub types.
  
    Args:
      bus: [USBNode] Bus object.
      hub_types: [iterable(usb_hubs.HubType)] Possible types of hubs.
  
    Yields:
      Sequence of tuples representing (hub, type of hub)
    """
    for device in bus.AllNodes():
      for hub_type in hub_types:
        if hub_type.IsType(device):
          yield (device, hub_type)
function_tokens: def GetHubsOnBus ( bus , hub_types ) : for device in bus . AllNodes ( ) : for hub_type in hub_types : if hub_type . IsType ( device ) : yield ( device , hub_type )