def METHOD_NAME(program_config, predictor_config):
    target_type = predictor_config.target()
    in_shape = list(program_config.inputs["input_data"].shape)
    axis = program_config.ops[0].attrs["dim"]
    keep_dim = program_config.ops[0].attrs["keep_dim"]
    if target_type == TargetType.Metal:
        if keep_dim == False or axis[0] != 1 or in_shape[
                0] != 1 or len(in_shape) < 4 or len(axis) > 1:
            return True