docstr: Gets the current levels of sparsity in a sparsifier.
docstr_tok: ["Gets","the","current","levels","of","sparsity","in","a","sparsifier","."]
code: def _get_sparsity_levels(sparsifier, precision=32):
      r"""Gets the current levels of sparsity in a sparsifier."""
      return [
          round(group["sparsity_level"], precision)
          for group in sparsifier.groups
      ]
  
imports: from torch import nn
  from torch.ao.pruning import WeightNormSparsifier
  from torch.ao.pruning import BaseScheduler, LambdaSL, CubicSL
  from torch.testing._internal.common_utils import TestCase
  import warnings
label_desc: Use image node_id 4 for calling the TestCubicScheduler obj's underlying member method code with example usage: obj._get_sparsity_levels(sparsifier, precision) and returns: unknown