code: def _load_pyfunc(path):
      """Load PyFunc implementation. Called by ``pyfunc.load_model``.
  
      Parameters
      ----------
      path : str
          Local filesystem path to the MLflow Model with the sktime flavor.
  
      See Also
      --------
      MLflow
  
      References
      ----------
      .. [1] https://www.mlflow.org/docs/latest/python_api/mlflow.pyfunc.html#mlflow.pyfunc.load_model
      """  # noqa: E501
      _check_mlflow_dependencies(severity="error")
      from mlflow.exceptions import MlflowException
      from mlflow.utils.model_utils import _get_flavor_configuration
  
      if os.path.isfile(path):
          serialization_format = SERIALIZATION_FORMAT_PICKLE
          _logger.warning(
              "Loading procedure in older versions of MLflow using pickle.load()"
          )
      else:
          try:
              sktime_flavor_conf = _get_flavor_configuration(
                  model_path=path, flavor_name=FLAVOR_NAME
              )
              serialization_format = sktime_flavor_conf.get(
                  "serialization_format", SERIALIZATION_FORMAT_PICKLE
              )
          except MlflowException:
              _logger.warning(
                  "Could not find sktime flavor configuration during model "
                  "loading process. Assuming 'pickle' serialization format."
              )
              serialization_format = SERIALIZATION_FORMAT_PICKLE
  
          pyfunc_flavor_conf = _get_flavor_configuration(
              model_path=path, flavor_name=pyfunc.FLAVOR_NAME
          )
          path = os.path.join(path, pyfunc_flavor_conf["model_path"])
  
      return _SktimeModelWrapper(
          _load_model(path, serialization_format=serialization_format)
      )
  
file_path: sktime/sktime/utils/mlflow_sktime.py
imports: import logging
  import os
  import pandas
  import yaml
  import sktime
  from sktime import utils
  from sktime.base._serialize import load
  from sktime.utils.multiindex import flatten_multiindex
  from sktime.utils.validation._dependencies import _check_mlflow_dependencies
label_desc: Use image node_id 8 for calling a global function with example usage: _load_pyfunc(path) and returns: _SktimeModelWrapper