code: def are_columns_nested(X):
      """Check whether any cells have nested structure in each DataFrame column.
  
      Parameters
      ----------
      X : pd.DataFrame
          DataFrame to check for nested data structures.
  
      Returns
      -------
      any_nested : bool
          If True, at least one column is nested.
          If False, no nested columns.
      """
      any_nested = any(
          is_nested_object(series) for _, series in X.items()
      )
      return any_nested
  
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 6 for calling a global function with example usage: are_columns_nested(X) and returns: any_nested