code: def is_no_python_compiled_callable(
      no_python_callable: Callable, raise_error: bool = False
  ):
      """Check if a callable is no_python compiled.
  
      Parameters
      ----------
      no_python_callable: Callable
          Callable to check if no_python compiled.
      raise_error: bool, defaults = False
          Boolean that when True will raise an error if the callable is not no_python
          compiled.
  
      Returns
      -------
      bool
          True if the callable is no_python compiled, False if the callable is not
          no_python compiled
  
      Raises
      ------
      ValueError
          If the raise_error parameter is True and the callable passed is not no_python
          compiled.
      """
      is_no_python_callable = hasattr(no_python_callable, "signatures")
      if raise_error and not is_no_python_callable:
          raise ValueError(
              f"The callable provided must be no_python compiled. The callable that "
              f"caused"
              f"this error is named {no_python_callable.__name__}"
          )
  
      return is_no_python_callable
  
file_path: sktime/sktime/distances/_numba_utils.py
imports: from typing import Callable
  import numpy
  from sktime.distances.base import DistanceCallable
  from sktime.utils.numba.njit import njit
label_desc: Use image node_id 3 for calling a global function with example usage: is_no_python_compiled_callable(no_python_callable, raise_error) and returns: is_no_python_callable