human
Solve the following python programming problem given the following code:
def build_swagger_12_resource_listing(resource_listing) : 
    '
    :param resource_listing: JSON representing a Swagger 1.2 resource listing
    :type resource_listing: dict
    :rtype: :class:`pyramid_swagger.model.PyramidEndpoint`
    ' 
    def view_for_resource_listing(request) : 
        return resource_listing 
return PyramidEndpoint (path = '', route_name = 'pyramid_swagger.swagger12.api_docs', view = resource_listing, renderer = 'json') 

    
    

    Fix the buggy line: return PyramidEndpoint (path = '', route_name = 'pyramid_swagger.swagger12.api_docs', view = resource_listing, renderer = 'json')
assistant
#Here is Python code to fix the buggy line: return PyramidEndpoint (path = '', route_name = 'pyramid_swagger.

return PyramidEndpoint (path = '', route_name = 'pyramid_swagger.swagger12.api_docs', view = def view_for_resource_listing(, renderer = 'json')