def METHOD_NAME(model_path, config_path, data_dir, framework="openvino", device="CPU"):
    args = [
        "-c",
        str(config_path),
        "-m",
        str(model_path),
        "-d",
        str(OPENVINO_DATASET_DEFINITIONS_PATH),
        "-s",
        str(data_dir),
        "-tf",
        framework,
        "-td",
        device,
    ]
    parser = build_arguments_parser()
    args = parser.parse_args(args)
    config, mode = ConfigReader.merge(args)
    model_evaluator = ModelEvaluator.from_configs(config[mode][0])
    def transform_fn(data_item):
        _, batch_annotation, batch_input, _ = data_item
        filled_inputs, _, _ = model_evaluator._get_batch_input(batch_annotation, batch_input)
        return filled_inputs[0]
    calibration_dataset = Dataset(model_evaluator.dataset, transform_fn)
    return calibration_dataset