docstr: ivy.Array instance method variant of ivy.copy_array. This method
  simply wraps the function, and so the docstring for ivy.copy_array also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array
  to_ivy_array
      boolean, if True the returned array will be an ivy.Array object otherwise
      returns an ivy.NativeArray object (i.e. a torch.tensor, np.array, etc.,
      depending on the backend), defaults to True.
  out
      optional output array, for writing the result to. It must have a shape that
      the inputs broadcast to.
  
  Returns
  -------
  ret
      a copy of the input array ``x``.
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.copy_array",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.copy_array","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array","to_ivy_array","boolean",",","if","True","the","returned","array","will","be","an","ivy.Array","object","otherwise","returns","an","ivy.NativeArray","object","(","i.e",".","a","torch.tensor",",","np.array",",","etc.",",","depending","on","the","backend",")",",","defaults","to","True",".","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","a","copy","of","the","input","array","``","x","``","."]
code: def copy_array(
      self: ivy.Array,
      /,
      *,
      to_ivy_array: bool = True,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.copy_array. This method
      simply wraps the function, and so the docstring for ivy.copy_array also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array
      to_ivy_array
          boolean, if True the returned array will be an ivy.Array object otherwise
          returns an ivy.NativeArray object (i.e. a torch.tensor, np.array, etc.,
          depending on the backend), defaults to True.
      out
          optional output array, for writing the result to. It must have a shape that
          the inputs broadcast to.
  
      Returns
      -------
      ret
          a copy of the input array ``x``.
      """
      return ivy.copy_array(self, to_ivy_array=to_ivy_array, out=out)
  
file_path: ivy/ivy/data_classes/array/creation.py
imports: import abc
  from numbers import Number
  from typing import Optional, Union, List
  import ivy
label_desc: Use image node_id 10 for calling the _ArrayWithCreation obj's underlying member method code with example usage: obj.copy_array() and returns: ivy