code: def test_convert_dtypes(data, dtype):
      s = pd.Series(data, dtype=dtype)
      gs = cudf.Series(data, dtype=dtype)
      expect = s.convert_dtypes()
  
      # because we don't have distinct nullable types, we check that we
      # get the same result if we convert to nullable pandas types:
      nullable = dtype not in ("category", "datetime64[ns]")
      got = gs.convert_dtypes().to_pandas(nullable=nullable)
      assert_eq(expect, got)
  
imports: import pandas
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 1 for calling a global function with example usage: test_convert_dtypes(data, dtype) without return types