code: def test_len_penalty():
      """Test multivariate data with penalty function as string input."""
      X = pd.DataFrame(
          [
              [-7.207, -4.916],
              [-5.723, -8.346],
              [5.890, -5.571],
              [5.489, -5.494],
              [5.089, -6.575],
          ]
      )
  
      cluster_expected = [0, 0, 1, 1, 1]
      fit_expected = [
          112.58235,
          127.67919,
          152.54531,
          205.61512,
          -35.52743,
      ]
  
      model = EAgglo(penalty="len_penalty")
      fitted_model = model._fit(X)
  
      cluster_actual = fitted_model.cluster_
      fit_actual = fitted_model.gof_
  
      assert np.allclose(cluster_actual, cluster_expected)
      assert np.allclose(fit_actual, fit_expected)
  
file_path: sktime/sktime/annotation/tests/test_eagglo.py
imports: import numpy
  import pandas
  from sktime.annotation.eagglo import EAgglo
label_desc: Use image node_id 4 for calling a global function with example usage: test_len_penalty() without return types