code: def _check_elements_equal(lst):
      
      assert isinstance(lst, list), "Input value must be a list."
      return not lst or lst.count(lst[0]) == len(lst)
docs: Returns true if all of the elements in the list are equal.