code: def _get_max_length(X):
      def get_length(input):
          return max(map(lambda series: len(series), input))
  
      return max(map(get_length, X))
  
file_path: sktime/sktime/transformations/panel/padder.py
imports: import numpy
  import pandas
  from sktime.transformations.base import BaseTransformer
  from sktime.utils.pandas import df_map
label_desc: Use image node_id 1 for calling a global function with example usage: _get_max_length(X) and returns: max, max