def find_devices(self, service_uuids=[], name=None):
        # Convert service UUID list to counter for quicker comparison.
        expected = Counter(service_uuids)
        # Grab all the devices.
        devices = self.list_devices()
        # Filter to just the devices that have the requested service UUID/name.
        found = []
        for device in devices:
            if name is not None:
                if device.name == name:
                    # Check if the name matches and add the device.
                    found.append(device)
            else:
                # Check if the advertised UUIDs have at least the expected UUIDs.
                actual = Counter(device.advertised)
                if actual >= expected:
                    found.append(device)
        return found
Query the list resource for a list of InstanceResources.
dataset/ETHPy150Open adafruit/Adafruit_Python_BluefruitLE/Adafruit_BluefruitLE/interfaces/provider.py/Provider.find_devices--crossover with--dataset/ETHPy150Open awslabs/lambda-apigateway-twilio-tutorial/twilio/rest/resources/base.py/ListResource.list