code: def _custom_model_loader_fn(model_path: str):
      """Returns a function that loads a scikit-learn model."""
      return lambda: pickle.load(tf.io.gfile.GFile(model_path, "rb"))
  
file_path: tfx/tfx/examples/penguin/experimental/sklearn_predict_extractor.py
imports: import copy
  import os
  import pickle
  from typing import Dict, Iterable, List
  import apache_beam
  import tensorflow
  import tensorflow_model_analysis
  from tfx_bsl.tfxio import tensor_adapter
label_desc: Use image node_id 3 for calling a global function with example usage: _custom_model_loader_fn(model_path) and returns: function