Doc: Include import statement for trailing_slash

I didn't add imports for other things because the user probably
has figured out how to import ModelResource, etc., by the time
he gets to the cookbook. But `trailing_slash` was not used elsewhere,
so I though it would be useful to show where it comes from.