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: import numpy
  from scipy.sparse import issparse
  from numpy 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