code: def device_filter(self):
          
          if isinstance(self._device_filter, str):
              return self._decode_query(self._device_filter)
          return self._device_filter
docs: The device filter to use.
  
          :rtype: dict