code: def _list_all_equal(obj):
      """Check whether elements of list are all equal.
  
      Parameters
      ----------
      obj: list - assumed, not checked
  
      Returns
      -------
      bool, True if elements of obj are all equal
      """
      if len(obj) < 2:
          return True
  
      return np.all([s == obj[0] for s in obj])
  
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 2 for calling a global function with example usage: _list_all_equal(obj) and returns: np, True