def METHOD_NAME(requirements_file, known_flaws_path):
    """Method used by pytest to generate a report.
    Args:
        requirements_file (str): path to the requirements input file.
        known_flaws_path (str): path to the Safety known flaws file.
    Returns:
        str: information about packages and vulnerabilities.
    """
    prepare_input(False, requirements_file)
    result = run_report()
    known_flaws = read_known_flaws(known_flaws_path=known_flaws_path)
    result['packages'] = [flaw for flaw in result['packages'] if
                          flaw not in known_flaws['known_issues'] + known_flaws['to_fix']]
    result['vulnerabilities_found'] = len(result['packages'])
    return json.dumps(result, indent=4)