class_docstr: Pre-predict contrib tests.
docstr: Test the various ways that prepredict loads data
docstr_tok: ["Test","the","various","ways","that","prepredict","loads","data"]
code: def test_load(self):
      """
      Test the various ways that prepredict loads data
      """
      # Test callable
      ppe = PrePredict(lambda: self.multiclass.y.test)
      assert ppe._load() is self.multiclass.y.test
  
      # Test file-like object, assume that str and pathlib.Path work similarly
      f = BytesIO()
      np.save(f, self.continuous.y.test)
      f.seek(0)
      ppe = PrePredict(f)
      assert np.array_equal(ppe._load(), self.continuous.y.test)
  
imports: import pytest
  from io import BytesIO
  from tests.fixtures import Dataset, Split
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from sklearn.naive_bayes import GaussianNB
  from sklearn.cluster import MiniBatchKMeans
  from sklearn.linear_model import LinearRegression
  from sklearn.model_selection import train_test_split
  from sklearn.datasets import make_classification, make_regression, make_blobs
  from yellowbrick.contrib.prepredict import *
  from yellowbrick.regressor import PredictionError
  from yellowbrick.classifier import ClassificationReport
  import numpy
label_desc: Use image node_id 4 for calling the TestPrePrePredictEstimator obj's underlying member method code with example usage: obj.test_load() without return types