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])
  
imports: import numpy
  from sktime.datatypes._panel._check import check_pdmultiindex_panel
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 1 for calling a global function with example usage: _list_all_equal(obj) and returns: np, True