class_docstr: A simple Device/CPU Array object in runtime.
docstr: Copy array to target
  
  Parameters
  ----------
  target : NDArray
      The target array to be copied, must have same shape as this array.
docstr_tok: ["Copy","array","to","target","Parameters","--","--","--","--","--","target",":","NDArray","The","target","array","to","be","copied",",","must","have","same","shape","as","this","array","."]
code: def copyto(self, target):
      """Copy array to target
  
      Parameters
      ----------
      target : NDArray
          The target array to be copied, must have same shape as this array.
      """
      if isinstance(target, DGLContext):
          target = empty(self.shape, self.dtype, target)
      if isinstance(target, NDArrayBase):
          check_call(
              _LIB.DGLArrayCopyFromTo(self.handle, target.handle)
          )
      else:
          raise ValueError(
              "Unsupported target type %s" % str(type(target))
          )
      return target
  
imports: from __future__ import absolute_import
  import ctypes
  import sys
  import numpy
  from .base import _FFI_MODE, _LIB, c_array, c_str, check_call, string_types
  from .runtime_ctypes import dgl_shape_index_t, DGLArray, DGLArrayHandle, DGLContext, DGLDataType, TypeCode
label_desc: Use image node_id 14 for calling the NDArrayBase obj's underlying member method code with example usage: obj.copyto(target) and returns: target