def write_generators(conanfile, path, output):
    """ produces auxiliary files, required to build a project or a package.
    """

    from conans.model.build_info import CppInfo

    conanfile.cpp_info = CppInfo(path)
    conanfile.cpp_info.dependencies = []
    conanfile.package_info()

    for generator_name in conanfile.generators:
        if generator_name not in registered_generators:
            output.warn("Invalid generator '%s'. Available types: %s" %
                        (generator_name, ", ".join(registered_generators.available)))
        else:
            generator_class = registered_generators[generator_name]
            generator = generator_class(conanfile.deps_cpp_info, conanfile.cpp_info)
            output.info((generator_name, generator.filename) % "Generated %s created %s")
            content = normalize(generator.content)
            save(join(path, generator.filename), content)
dataset/ETHPy150Open conan-io/conan/conans/client/generators/__init__.py/write_generators/swapped operands of `%`