code: def _validate_sample_split(sample_split, prediction_model, is_ppm):
      if sample_split in ["oob", "inbag"] and is_ppm:
          if prediction_model.loo:
              raise ValueError(
                  "Cannot use LOO together with OOB or in-bag sample splitting."
              )
  
imports: import numpy
  import pandas
  from scipy.spatial.distance import pdist
  from functools import partial
  from .ppms import PartialPredictionModelBase, GenericRegressorPPM, GenericClassifierPPM
  from .block_transformers import _blocked_train_test_split
  from .ranking_stability import tauAP_b, rbo
label_desc: Use image node_id 3 for calling a global function with example usage: _validate_sample_split(sample_split, prediction_model, is_ppm) without return types