code: def test_astype():
      arr = DummyArray(np.array([1, 2, 3]))
      expected = np.array([1, 2, 3], dtype=object)
  
      result = arr.astype(object)
      tm.assert_numpy_array_equal(result, expected)
  
      result = arr.astype("object")
      tm.assert_numpy_array_equal(result, expected)
  
imports: import numpy
  import pytest
  from pandas.core.dtypes import dtypes
  from pandas.core.dtypes.common import is_extension_array_dtype
  import pandas
  import pandas._testing
  from pandas.core.arrays import ExtensionArray
label_desc: Use image node_id 1 for calling a global function with example usage: test_astype() without return types