code: def _smape_loss(y_true, y_pred, **kwargs):
      """Wrapper for sktime metrics"""
      y_true = _check_series(y_true)
      y_pred = _check_series(y_pred)
      return mean_absolute_percentage_error(
          y_true=y_true, y_pred=y_pred, symmetric=True, **kwargs
      )
  
imports: from typing import Any, Dict, Optional, Union
  import numpy
  import pandas
  from sklearn import metrics
  from sklearn.metrics._scorer import _BaseScorer
  from sktime.performance_metrics.forecasting._functions import mean_absolute_percentage_error, mean_absolute_scaled_error, mean_squared_scaled_error
  import pycaret.internal.metrics
  from pycaret.containers.metrics.base_metric import MetricContainer
label_desc: Use image node_id 1 for calling a global function with example usage: _smape_loss(y_true, y_pred) and returns: mean_absolute_percentage_error