def resource(self, name):
for resource in self.resources():<EOL><INDENT>if resource.name.lower() == name.lower():<EOL><INDENT>return resource<EOL><DEDENT><DEDENT>raise NotFound('<STR_LIT>' % name)<EOL>
Returns the :class:`~plexapi.myplex.MyPlexResource` that matches the name specified.

            Parameters:
                name (str): Name to match against.