code: def len_penalty(x: pd.DataFrame) -> int:
      """Penalize goodness-of-fit statistic for number of change points."""
      return -len(x)
  
imports: import warnings
  from typing import Callable, Dict, List, Tuple
  import numpy
  import pandas
  from scipy.spatial.distance import cdist
  from sktime.transformations.base import BaseTransformer
label_desc: Use image node_id 2 for calling a global function with example usage: len_penalty(x) and returns: unknown