def METHOD_NAME(self, device):
    """set device"""
    if device not in PorosOptions.available_devices:
        raise TypeError("device for poros invalid, only %s supported, fix it" % (PorosOptions.available_devices))
    self.device = device