class_docstr: Base class for ExtensionDtype classes
class_docstr_tok: ["Base","class","for","ExtensionDtype","classes"]
code: def test_check_dtype(self, data):
      dtype = data.dtype
  
      # check equivalency for using .dtypes
      df = pd.DataFrame(
          {
              "A": pd.Series(data, dtype=dtype),
              "B": data,
              "C": pd.Series(["foo"] * len(data), dtype=object),
              "D": 1,
          }
      )
      result = df.dtypes == str(dtype)
      assert np.dtype("int64") != "Int64"
  
      expected = pd.Series(
          [True, True, False, False], index=list("ABCD")
      )
  
      tm.assert_series_equal(result, expected)
  
      expected = pd.Series(
          [True, True, False, False], index=list("ABCD")
      )
      result = df.dtypes.apply(str) == str(dtype)
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.api.types import infer_dtype, is_object_dtype, is_string_dtype
label_desc: Use image node_id 13 for calling the BaseDtypeTests obj's underlying member method code with example usage: obj.test_check_dtype(data) without return types