def METHOD_NAME(results):
    """Translates nanopb output dictionaries to a CodeGeneratorResponse.
    Args:
      results: A list of generated source dictionaries, as returned by
        nanopb_generate().
    Returns:
      A CodeGeneratorResponse describing the result of the code generation
      process to protoc.
    """
    response = plugin_pb2.CodeGeneratorResponse()
    for result in results:
        f = response.file.add()
        f.name = result['headername']
        f.content = result['headerdata']
        f = response.file.add()
        f.name = result['sourcename']
        f.content = result['sourcedata']
    return response