code: def astype(x: Array, dtype: Dtype, /, *, copy: bool = True) -> Array:
      if not copy and dtype == x.dtype:
          return x
      return Array._new(x._array.astype(dtype=dtype, copy=copy))
  
file_path: cupy/cupy/array_api/_data_type_functions.py
imports: from __future__ import annotations
  from ._array_object import Array
  from ._dtypes import _all_dtypes, _result_type
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, List, Tuple, Union
  import cupy
label_desc: Use image node_id 1 for calling a global function with example usage: astype() and returns: Array, x