code: def test_cpp_export(dataset, parameters):
      model_cpp, _, model_cbm = _get_cpp_py_cbm_model(
          dataset, parameters
      )
      _, test_path, cd_path = _get_train_test_cd_path(dataset)
  
      # form the commands we are going to run
  
      applicator_cpp = yatest.common.source_path(
          "catboost/libs/model/model_export/ut/applicator.cpp"
      )
      applicator_exe = yatest.common.test_output_path("applicator.exe")
      predictions_by_catboost_path = yatest.common.test_output_path(
          "predictions_by_catboost.txt"
      )
      predictions_path = yatest.common.test_output_path(
          "predictions.txt"
      )
  
      is_multiclass_model = (
          __get_train_loss_function(dataset) == "MultiClass"
      )
  
      if os.name == "posix":
          compile_cmd = ["g++", "-std=c++14", "-o", applicator_exe]
      else:
          compile_cmd = ["cl.exe", "-Fe" + applicator_exe]
      compile_cmd += [applicator_cpp, model_cpp]
      apply_cmd = [applicator_exe, test_path, cd_path, predictions_path]
      if is_multiclass_model:
          model = CatBoost()
          model.load_model(model_cbm)
          apply_cmd.append(",".join(model.classes_))
  
      calc_cmd = [
          CATBOOST_APP_PATH,
          "calc",
          "-m",
          model_cbm,
          "--input-path",
          test_path,
          "--cd",
          cd_path,
          "--output-path",
          predictions_by_catboost_path,
          "--prediction-type",
          "RawFormulaVal",
      ]
      compare_cmd = [
          APPROXIMATE_DIFF_PATH,
          "--have-header",
          "--diff-limit",
          "1e-6",
          predictions_path,
          predictions_by_catboost_path,
      ]
  
      try:
          yatest.common.execute(compile_cmd)
          yatest.common.execute(apply_cmd)
          yatest.common.execute(calc_cmd)
          yatest.common.execute(compare_cmd)
      except OSError as e:
          if re.search(
              r"No such file or directory.*'{}'".format(
                  re.escape(compile_cmd[0])
              ),
              str(e),
          ):
              pytest.xfail(
                  reason="We ignore `compiler not found` error: {}\n".format(
                      str(e)
                  )
              )
          else:
              raise
  
file_path: catboost/catboost/libs/model/model_export/ut/test.py
imports: import numpy
  import os
  import pytest
  import re
  import yatest
  from catboost import Pool, CatBoost, CatBoostClassifier
  from catboost_pytest_lib import data_file, load_pool_features_as_df
label_desc: Use image node_id 6 for calling a global function with example usage: test_cpp_export(dataset, parameters) without return types