code: def test_index_from_series(self):
      pser = pd.Series([1, 2, 3], name="a", index=[10, 20, 30])
      psser = ps.from_pandas(pser)
  
      self.assert_eq(ps.Index(psser), pd.Index(pser))
      self.assert_eq(
          ps.Index(psser, dtype="float"), pd.Index(pser, dtype="float")
      )
      self.assert_eq(
          ps.Index(psser, name="x"), pd.Index(pser, name="x")
      )
  
      self.assert_eq(
          ps.Index(psser, dtype="int64"), pd.Index(pser, dtype="int64")
      )
      self.assert_eq(
          ps.Index(psser, dtype="float64"),
          pd.Index(pser, dtype="float64"),
      )
  
      pser = pd.Series(
          [datetime(2021, 3, 1), datetime(2021, 3, 2)],
          name="x",
          index=[10, 20],
      )
      psser = ps.from_pandas(pser)
  
      self.assert_eq(ps.Index(psser), pd.Index(pser))
      self.assert_eq(ps.DatetimeIndex(psser), pd.DatetimeIndex(pser))
  
imports: import unittest
  from datetime import datetime
  import pandas
  from pyspark import pandas
  from pyspark.loose_version import LooseVersion
  from pyspark.testing.pandasutils import PandasOnSparkTestCase, SPARK_CONF_ARROW_ENABLED
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 3 for calling the ConversionMixin obj's underlying member method code with example usage: obj.test_index_from_series() without return types