def METHOD_NAME(self, loss_function, dataset):
    model_file = get_test_output_path('model{}.bin')
    yc.execute([
        CATBOOST_PATH,
        'fit',
        '--loss-function', loss_function,
        '-f', dataset.train_file,
        '--cd', dataset.cd_file,
        '-i', '10',
        '-T', '4',
        '-m', model_file,
    ])
    return model_file