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