class_docstr: Wrapper around cupy.ndarray
  Supports cupy.ndarray.__init__ as well as,
  gets initialized with a cupy ndarray.
docstr: Updates _numpy_array from _cupy_array.
  To be executed before calling numpy function.
docstr_tok: ["Updates","_numpy_array","from","_cupy_array",".","To","be","executed","before","calling","numpy","function","."]
code: def _update_numpy_array(self):
      """
      Updates _numpy_array from _cupy_array.
      To be executed before calling numpy function.
      """
      base = self.base
      _type = (
          np.ndarray
          if self._supports_cupy
          else self._numpy_array.__class__
      )
  
      if self._supports_cupy:
          # cupy-compatible
          if base is None:
              if not self._remember_numpy:
                  if self._numpy_array is None:
                      self._numpy_array = cp.asnumpy(self._cupy_array)
                  else:
                      self._cupy_array.get(out=self._numpy_array)
          else:
              if not base._remember_numpy:
                  base._update_numpy_array()
                  if self._numpy_array is None:
                      self._numpy_array = base._numpy_array.view(
                          type=_type
                      )
                      self._numpy_array.shape = self._cupy_array.shape
                      self._numpy_array.strides = (
                          self._cupy_array.strides
                      )
      else:
          # not cupy-compatible
          if base is not None:
              assert base._supports_cupy
              if not base._remember_numpy:
                  base._update_numpy_array()
  
imports: import types
  import numpy
  import cupy
  from cupyx.fallback_mode import notification
label_desc: Use image node_id 9 for calling the ndarray obj's underlying member method code with example usage: obj._update_numpy_array() without return types