code: def astype_without_warning(x, dtype, *args, **kwargs):
      dtype = numpy.dtype(dtype)
      if x.dtype.kind == "c" and dtype.kind not in ["b", "c"]:
          with testing.assert_warns(numpy.ComplexWarning):
              return x.astype(dtype, *args, **kwargs)
      else:
          return x.astype(dtype, *args, **kwargs)
  
imports: import numpy
  import pytest
  import cupy
  from cupy import testing
  from cupy import _util
label_desc: Use image node_id 1 for calling a global function with example usage: astype_without_warning(x, dtype) and returns: x, x