def METHOD_NAME(trial, model, data, objConfig, objParams):
    data = np.array(data)
    model_params = objParams['model_params']
    transformer = model_params.get('transformer')
    if transformer:
        data = transformer.transform_x(pd.DataFrame(data))
    return dat