def METHOD_NAME(self, DevicesToScan):
    self.logging("Debug", "ScanDevicesForGroupMemberShip : %s " % DevicesToScan)
    for NwkId in DevicesToScan:
        if NwkId == "0000":
            submitForGroupMemberShipScaner(self, NwkId, "01")
            continue
        if NwkId not in self.ListOfDevices:
            self.logging("Debug", "ScanDevicesForGroupMemberShip : Skiping %s not existing" % NwkId)
            continue
        if not mainPoweredDevice:
            self.logging("Debug", "ScanDevicesForGroupMemberShip : Skiping %s not main powered" % NwkId)
            continue
        ListEp = getListOfEpForCluster(self, NwkId, "0004")
        self.logging("Debug", "ScanDevicesForGroupMemberShip : List of Ep %s for  %s" % (str(ListEp), NwkId))
        for Ep in ListEp:
            if [NwkId, Ep] not in self.ScanDevicesToBeDone:
                self.GroupStatus = "scan"
                submitForGroupMemberShipScaner(self, NwkId, Ep)