code: def test_inferred_type(self):
      # Integer
      pidx = pd.Index([1, 2, 3])
      psidx = ps.from_pandas(pidx)
      self.assert_eq(pidx.inferred_type, psidx.inferred_type)
  
      # Floating
      pidx = pd.Index([1.0, 2.0, 3.0])
      psidx = ps.from_pandas(pidx)
      self.assert_eq(pidx.inferred_type, psidx.inferred_type)
  
      # String
      pidx = pd.Index(["a", "b", "c"])
      psidx = ps.from_pandas(pidx)
      self.assert_eq(pidx.inferred_type, psidx.inferred_type)
  
      # Boolean
      pidx = pd.Index([True, False, True, False])
      psidx = ps.from_pandas(pidx)
      self.assert_eq(pidx.inferred_type, psidx.inferred_type)
  
      # MultiIndex
      pmidx = pd.MultiIndex.from_tuples([("a", "x")])
      psmidx = ps.from_pandas(pmidx)
      self.assert_eq(pmidx.inferred_type, psmidx.inferred_type)
  
imports: import unittest
  from datetime import datetime
  import numpy
  import pandas
  import pyspark.pandas
  from pyspark.pandas.exceptions import PandasNotImplementedError
  from pyspark.testing.pandasutils import PandasOnSparkTestCase, TestUtils, SPARK_CONF_ARROW_ENABLED
label_desc: Use image node_id 7 for calling the IndexBasicMixin obj's underlying member method code with example usage: obj.test_inferred_type() without return types