code: def _nrm2_last_axis(x):
      real_dtype = x.dtype.char.lower()
      x = cupy.ascontiguousarray(x)
      return cupy.sum(cupy.square(x.view(real_dtype)), axis=-1)
  
file_path: cupy/cupy/linalg/_solve.py
imports: import warnings
  import numpy
  from numpy import linalg
  import cupy
  from cupy._core import internal
  from cupy.cuda import device
  from cupy.linalg import _decomposition
  from cupy.linalg import _util
  import cupyx
label_desc: Use image node_id 3 for calling a global function with example usage: _nrm2_last_axis(x) and returns: cupy