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.
  
      """
      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)
      )
  
imports: import logging
  import os
  import pickle
  from typing import Any, Dict, Optional
  import flavor
  import numpy
  import pandas
  import sktime
  import yaml
  from sktime.utils.multiindex import flatten_multiindex
  import mlflow
  from mlflow import pyfunc
  from mlflow.exceptions import MlflowException
  from mlflow.models import Model
  from mlflow.models.model import MLMODEL_FILE_NAME
  from mlflow.models.utils import _save_example
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
  from mlflow.tracking._model_registry import DEFAULT_AWAIT_MAX_SLEEP_SECONDS
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri
  from mlflow.utils.environment import _CONDA_ENV_FILE_NAME, _CONSTRAINTS_FILE_NAME, _PYTHON_ENV_FILE_NAME, _REQUIREMENTS_FILE_NAME, _mlflow_conda_env, _process_conda_env, _process_pip_requirements, _PythonEnv, _validate_env_arguments
  from mlflow.utils.file_utils import write_to
  from mlflow.utils.model_utils import _add_code_from_conf_to_system_path, _get_flavor_configuration, _validate_and_copy_code_paths, _validate_and_prepare_target_save_path
  from mlflow.utils.requirements_utils import _get_pinned_requirement
label_desc: Use image node_id 8 for calling a global function with example usage: _load_pyfunc(path) and returns: _SktimeModelWrapper