code: def dump_resource(resource, stream, content_type=None):
      
      if content_type is None:
          content_type = CsvMime
      rpr = as_representer(resource, content_type)
      rpr.to_stream(resource, stream)
docs: Dumps the given resource to the given stream using the specified MIME
      content type (defaults to CSV).