code: def generate(self, request, **kwargs):
          
  
          # method check to avoid bad requests
          self.method_check(request, allowed=['get'])
  
          # create a basic bundle object for self.get_cached_obj_get.
          basic_bundle = self.build_bundle(request=request)
  
          # using the primary key defined in the url, obtain the tileset
          tileset = self.cached_obj_get(
              bundle=basic_bundle,
              **self.remove_api_resource_names(kwargs))
  
          # Return what the method output, tastypie will handle the serialization
          return self.create_response(request, tileset.generate())
docs: proxy for the tileset.generate method