code: def _binary_entropy(c1, c2):
      ent = 0
      if c1 != 0:
          ent -= c1 / (c1 + c2) * np.log2(c1 / (c1 + c2))
      if c2 != 0:
          ent -= c2 / (c1 + c2) * np.log2(c2 / (c1 + c2))
      return ent
  
file_path: sktime/sktime/transformations/panel/_shapelet_transform_numba.py
imports: import heapq
  import math
  import numpy
  from sktime.utils.numba.njit import njit
label_desc: Use image node_id 4 for calling a global function with example usage: _binary_entropy(c1, c2) and returns: ent