def METHOD_NAME(log_dir: Path, process: str = 'core', log_message: str = None, num_logs: int = 100):
    """
    Create dummy log lines to test debug log endpoint.
    :param log_dir: Directory to place the log files.
    :param process: Either 'core' or 'gui'
    :param log_message: log line to write to file.
    :param num_logs: Number of log lines to write
    :return: None
    """
    if not log_dir.exists():
        os.makedirs(log_dir)
    info_log_file_path = log_dir / f'tribler-{process}-info.log'
    log_message = log_message if log_message else f"This is a {process} test log message."
    with open(info_log_file_path, "w") as info_log_file:
        for log_index in range(num_logs):
            info_log_file.write(f"{log_message} {log_index}\n")