def METHOD_NAME(mocker, monkeypatch, set_environment_variables):
    """
    Given
    - kl-get-components command
    When
    - Running `run` command on it with json-to-outputs flag.
    Then
    - Ensure the json_to_outputs command is running correctly
    """
    logger_info = mocker.patch.object(logging.getLogger("demisto-sdk"), "info")
    logger_warning = mocker.patch.object(logging.getLogger("demisto-sdk"), "warning")
    logger_error = mocker.patch.object(logging.getLogger("demisto-sdk"), "error")
    monkeypatch.setenv("COLUMNS", "1000")
    # mocks to allow the command to run locally
    mocker.patch.object(Runner, "_get_playground_id", return_value="pg_id")
    mocker.patch.object(Runner, "_run_query", return_value=["123"])
    # mock to get test log file
    mocker.patch.object(DefaultApi, "download_file", return_value=DEBUG_FILE_PATH)
    # mock to set prefix instead of getting it from input
    command = "!kl-get-records"
    run_result = CliRunner(
        mix_stderr=False,
    ).invoke(main, ["run", "-q", command, "--json-to-outputs", "-p", "Keylight", "-r"])
    assert run_result.exit_code == 0
    assert not run_result.stderr
    assert not run_result.exception
    assert str_in_call_args_list(logger_info.call_args_list, YAML_OUTPUT)
    assert logger_warning.call_count == 0
    assert logger_error.call_count == 0