code: def _cost(_x: float, _y: float, _z: float, _c: float) -> float:
      if (_y <= _x <= _z) or (_y >= _x >= _z):
          return _c
      return _c + min(abs(_x - _y), abs(_x - _z))
  
imports: import warnings
  import numpy
  from sktime.utils.numba.njit import njit
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 1 for calling a global function with example usage: _cost(_x, _y, _z, _c) and returns: unknown, _c