code: def device(self, name):
          
          for device in self.devices():
              if device.name.lower() == name.lower():
                  return device
          raise NotFound('Unable to find device %s' % name)
docs: Returns the :class:`~plexapi.myplex.MyPlexDevice` that matches the name specified.
  
              Parameters:
                  name (str): Name to match against.