def METHOD_NAME(self, NwkId, Ep):
    if self.ControllerLink.loadTransmit() >= 1:
        self.ScanDevicesToBeDone.append([NwkId, Ep])
    else:
        scan_device_for_grp_membership(self, NwkId, Ep)