code: def restore(self, state):
          
  
          reading = state.get(u'reading')
          if reading is not None:
              reading = IOTileReading.FromDict(reading)
  
          selector = DataStreamSelector.FromString(state.get(u'selector'))
          if self.selector != selector:
              raise ArgumentError("Attempted to restore a VirtualStreamWalker with a different selector",
                                  selector=self.selector, serialized_data=state)
  
          self.reading = reading
docs: Restore the contents of this virtual stream walker.
  
          Args:
              state (dict): The previously serialized state.
  
          Raises:
              ArgumentError: If the serialized state does not have
                  a matching selector.