Add `get_resource` method for better importing.