code: def test_all(self):
      for pser in [
          pd.Series([True, True], name="x"),
          pd.Series([True, False], name="x"),
          pd.Series([0, 1], name="x"),
          pd.Series([1, 2, 3], name="x"),
          pd.Series([np.nan, 0, 1], name="x"),
          pd.Series([np.nan, 1, 2, 3], name="x"),
          pd.Series([True, True, None], name="x"),
          pd.Series([True, False, None], name="x"),
          pd.Series([], name="x"),
          pd.Series([np.nan], name="x"),
          pd.Series([np.nan, np.nan], name="x"),
          pd.Series([None], name="x"),
          pd.Series([None, None], name="x"),
      ]:
          psser = ps.from_pandas(pser)
          self.assert_eq(psser.all(), pser.all())
          self.assert_eq(
              psser.all(skipna=False), pser.all(skipna=False)
          )
          self.assert_eq(psser.all(skipna=True), pser.all(skipna=True))
  
      pser = pd.Series([1, 2, 3, 4], name="x")
      psser = ps.from_pandas(pser)
  
      self.assert_eq((psser % 2 == 0).all(), (pser % 2 == 0).all())
  
      with self.assertRaisesRegex(
          NotImplementedError,
          'axis should be either 0 or "index" currently.',
      ):
          psser.all(axis=1)
  
file_path: spark/python/pyspark/pandas/tests/series/test_all_any.py
imports: import unittest
  import numpy
  import pandas
  from pyspark import pandas
  from pyspark.testing.pandasutils import ComparisonTestBase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 1 for calling the SeriesAllAnyMixin obj's underlying member method code with example usage: obj.test_all() without return types