'Creates a bulk request from a list of objects.'

def _create_bulk_from_list(self, fmt, resource, objects, **kwargs):

    collection = ('%ss' % resource)
    req_data = {collection: objects}
    req = self.new_create_request(collection, req_data, fmt)
    if (('set_context' in kwargs) and (kwargs['set_context'] is True) and ('tenant_id' in kwargs)):
        req.environ['neutron.context'] = context.Context('', kwargs['tenant_id'])
    elif ('context' in kwargs):
        req.environ['neutron.context'] = kwargs['context']
    return req.get_response(self.api)
