code: def _sparse_frobenius_norm(x):
      if np.issubdtype(x.dtype, np.complexfloating):
          sqnorm = abs(x).power(2).sum()
      else:
          sqnorm = x.power(2).sum()
      return sqrt(sqnorm)
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from scipy.sparse import issparse
  from numpy.core import Inf, sqrt, abs
label_desc: Use image node_id 1 for calling a global function with example usage: _sparse_frobenius_norm(x) and returns: sqrt