code: def test_data_type_ops(self):
      _mock_spark_type = DataType()
      _mock_dtype = ExtensionDtype()
      _mappings = (
          (CategoricalDtype(), _mock_spark_type, CategoricalOps),
          (_mock_dtype, DecimalType(), DecimalOps),
          (_mock_dtype, FractionalType(), FractionalOps),
          (_mock_dtype, IntegralType(), IntegralOps),
          (_mock_dtype, StringType(), StringOps),
          (_mock_dtype, BooleanType(), BooleanOps),
          (_mock_dtype, TimestampType(), DatetimeOps),
          (_mock_dtype, TimestampNTZType(), DatetimeNTZOps),
          (_mock_dtype, DateType(), DateOps),
          (_mock_dtype, DayTimeIntervalType(), TimedeltaOps),
          (_mock_dtype, BinaryType(), BinaryOps),
          (_mock_dtype, ArrayType(StringType()), ArrayOps),
          (_mock_dtype, MapType(StringType(), IntegralType()), MapOps),
          (_mock_dtype, StructType(), StructOps),
          (_mock_dtype, NullType(), NullOps),
          (_mock_dtype, UserDefinedType(), UDTOps),
      )
      for _dtype, _spark_type, _ops in _mappings:
          self.assertIsInstance(DataTypeOps(_dtype, _spark_type), _ops)
  
      _unknow_spark_type = _mock_spark_type
      self.assertRaises(
          TypeError, DataTypeOps, BooleanType(), _unknow_spark_type
      )
  
imports: import unittest
  from pandas.api.types import CategoricalDtype
  from pandas.api.extensions import ExtensionDtype
  from pyspark.pandas.data_type_ops.base import DataTypeOps
  from pyspark.pandas.data_type_ops.binary_ops import BinaryOps
  from pyspark.pandas.data_type_ops.boolean_ops import BooleanOps, BooleanExtensionOps
  from pyspark.pandas.data_type_ops.categorical_ops import CategoricalOps
  from pyspark.pandas.data_type_ops.complex_ops import ArrayOps, MapOps, StructOps
  from pyspark.pandas.data_type_ops.date_ops import DateOps
  from pyspark.pandas.data_type_ops.datetime_ops import DatetimeOps, DatetimeNTZOps
  from pyspark.pandas.data_type_ops.null_ops import NullOps
  from pyspark.pandas.data_type_ops.num_ops import IntegralOps, FractionalOps, DecimalOps
  from pyspark.pandas.data_type_ops.string_ops import StringOps
  from pyspark.pandas.data_type_ops.timedelta_ops import TimedeltaOps
  from pyspark.pandas.data_type_ops.udt_ops import UDTOps
  from pyspark.sql.types import ArrayType, BinaryType, BooleanType, DataType, DateType, DayTimeIntervalType, DecimalType, FractionalType, IntegralType, MapType, NullType, StringType, StructType, TimestampType, TimestampNTZType, UserDefinedType
label_desc: Use image node_id 1 for calling the BaseTestsMixin obj's underlying member method code with example usage: obj.test_data_type_ops() without return types