code: def binom(N: float, q: float):
      """Calculate the binomial coefficient.
  
      Parameters
      ----------
      N : int, float
          number of fixed elements from which q is chosen
      q : int, float
          number of subset q elements chosen from N
      """
      if q == 0:
          return 1.0
      if N < 0:
          return 0.0
      return reduce(
          lambda x, y: x * y, [(N - q1) / (q1 + 1) for q1 in range(q)]
      )
  
file_path: sktime/sktime/transformations/series/hidalgo.py
imports: from functools import reduce
  import numpy
  from sklearn.neighbors import NearestNeighbors
  from sklearn.utils.validation import check_random_state
  from sktime.transformations.base import BaseTransformer
label_desc: Use image node_id 1 for calling a global function with example usage: binom(N, q) and returns: reduce, int, int