code: def _is_series_composed_of_lists(series: pd.Series) -> bool:
      # we assume that all elements are a list here
      first_not_none_element = next(
          (element for element in series if element is not None), None
      )
      return pandas.api.types.is_object_dtype(
          series.dtype
      ) and isinstance(first_not_none_element, (list, np.ndarray))
  
imports: from collections import Counter, OrderedDict
  from functools import partial
  from typing import Dict, List, Optional
  import numpy
  import pandas
  import pandas.api.types
  from ray.air.util.data_batch_conversion import BatchFormat
  from ray.data import Dataset
  from ray.data.preprocessor import Preprocessor, PreprocessorNotFittedException
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 3 for calling a global function with example usage: _is_series_composed_of_lists(series) and returns: unknown