code: def reshape(
      x: Array,
      /,
      shape: Tuple[int, ...],
      *,
      copy: Optional[Bool] = None,
  ) -> Array:
      """
      Array API compatible wrapper for :py:func:`np.reshape <numpy.reshape>`.
  
      See its docstring for more information.
      """
  
      data = x._array
      if copy:
          data = np.copy(data)
  
      reshaped = np.reshape(data, shape)
  
      if copy is False and not np.shares_memory(data, reshaped):
          raise AttributeError(
              "Incompatible shape for in-place modification."
          )
  
      return Array._new(reshaped)
  
file_path: numpy/numpy/array_api/_manipulation_functions.py
imports: from __future__ import annotations
  from ._array_object import Array
  from ._data_type_functions import result_type
  from typing import List, Optional, Tuple, Union
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: reshape(shape) and returns: Array