parameters: (self, verbose=False, print_func=None)
return_statement: return self
docstring: Switch on/off verbose mode
  
          Parameters
          ----------
          verbose : bool
              switch on/off verbose mode
          print_func : function
              A function that computes statistics of initialized arrays.
              Takes an `NDArray` and returns an `str`. Defaults to mean
              absolute value str((abs(x)/size(x)).asscalar()).
docstring_summary: Switch on/off verbose mode
docstring_tokens: Switch on / off verbose mode
function: def set_verbosity(self, verbose=False, print_func=None):
          """Switch on/off verbose mode
  
          Parameters
          ----------
          verbose : bool
              switch on/off verbose mode
          print_func : function
              A function that computes statistics of initialized arrays.
              Takes an `NDArray` and returns an `str`. Defaults to mean
              absolute value str((abs(x)/size(x)).asscalar()).
          """
          self._verbose = verbose
          if print_func is None:
              def asum_stat(x):
                  """returns |x|/size(x), async execution."""
                  return str((ndarray.norm(x)/sqrt(x.size)).asscalar())
              print_func = asum_stat
          self._print_func = print_func
          return self
function_tokens: def set_verbosity ( self , verbose = False , print_func = None ) : self . _verbose = verbose if print_func is None : def asum_stat ( x ) : """returns |x|/size(x), async execution.""" return str ( ( ndarray . norm ( x ) / sqrt ( x . size ) ) . asscalar ( ) ) print_func = asum_stat self . _print_func = print_func return self