docstr: Tests that an EvalSharedModel is created with a custom sklearn loader.
docstr_tok: ["Tests","that","an","EvalSharedModel","is","created","with","a","custom","sklearn","loader","."]
code: def test_custom_eval_shared_model(self):
      """Tests that an EvalSharedModel is created with a custom sklearn loader."""
      model_file = os.path.basename(self._eval_shared_model.model_path)
      self.assertEqual(model_file, "model.pkl")
      model = self._eval_shared_model.model_loader.construct_fn()
      self.assertIsInstance(model, nn.MLPClassifier)
  
file_path: tfx/tfx/examples/penguin/experimental/sklearn_predict_extractor_test.py
imports: import os
  import pickle
  import apache_beam
  from apache_beam.testing import util
  from sklearn import neural_network
  import tensorflow_model_analysis
  from tfx.examples.penguin.experimental import sklearn_predict_extractor
  from tfx_bsl.tfxio import tensor_adapter
  from tfx_bsl.tfxio import test_util
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 4 for calling the SklearnPredictExtractorTest obj's underlying member method code with example usage: obj.test_custom_eval_shared_model() without return types