code: def _nested_dataframe_has_unequal(X: pd.DataFrame) -> bool:
      """Check whether an input nested DataFrame of Series has unequal length series.
  
      Parameters
      ----------
      X : pd.DataFrame where each cell is a pd.Series
  
      Returns
      -------
      True if x contains any NaNs, False otherwise.
      """
      rows = len(X)
      cols = len(X.columns)
      s = X.iloc[0, 0]
      length = len(s)
  
      for i in range(0, rows):
          for j in range(0, cols):
              s = X.iloc[i, j]
              temp = len(s)
              if temp != length:
                  return True
      return False
  
file_path: sktime/sktime/datatypes/_panel/_check.py
imports: import numpy
  import pandas
  from pandas.core.dtypes.cast import is_nested_object
  from sktime.datatypes._common import _req, _ret
  from sktime.datatypes._series._check import _index_equally_spaced, check_pddataframe_series
  from sktime.utils.validation._dependencies import _check_soft_dependencies
  from sktime.utils.validation.series import is_in_valid_index_types, is_integer_index
label_desc: Use image node_id 7 for calling a global function with example usage: _nested_dataframe_has_unequal(X) and returns: False, True